From: Junio C Hamano <junkio@cox.net>
To: Martin Langhoff <martin.langhoff@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: How do I track pu branch?
Date: Mon, 15 Aug 2005 19:55:40 -0700 [thread overview]
Message-ID: <7vd5oepp3n.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <7v4q9qr4gn.fsf@assigned-by-dhcp.cox.net> (Junio C. Hamano's message of "Mon, 15 Aug 2005 19:38:32 -0700")
Junio C Hamano <junkio@cox.net> writes:
> Martin Langhoff <martin.langhoff@gmail.com> writes:
>
>> Following an extenal repo, I am not getting all the heads. This is by
>> design, AFAIK, and the question is how do I find what heads the repo
>> offers and pull them in so I can call them by name?
Sorry, "git ls-remote" was the answer to only the first
question. Regarding your second question.
Once you have found out about them, the way to use shorthand the
current tool offers is:
$ echo 'http://www.kernel.org/pub/scm/git/git.git/#pu' \
>.git/branches/ko-pu
$ git fetch ko-pu
Any "git fetch" creates .git/FETCH_HEAD file which holds the
SHA1 object name of the fetched commit, but when shorthand
recorded in .git/branches is involved, it additionally creates
the file ".git/refs/heads/ko-pu". Then you could:
$ git checkout -b for-junio ko-pu
$ git apply --index <cvsimport-use-kk-flag.patch
$ git commit -v -s
$ git format-patch ko-pu..HEAD
Note. As I may have said elsewhere, "pu" branch in git.git
repository is rebased almost daily, so please be prepared to
throw away any branches you may fork off from it.
Note. The shorthand notation for the pull/fetch side is planned
to be enhanced so that you can keep track of multiple remote
heads. That has not happened yet.
next prev parent reply other threads:[~2005-08-16 2:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-16 1:56 How do I track pu branch? Martin Langhoff
2005-08-16 2:38 ` Junio C Hamano
2005-08-16 2:55 ` Junio C Hamano [this message]
2005-08-16 3:17 ` Martin Langhoff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vd5oepp3n.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=martin.langhoff@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).