* How do I track pu branch?
@ 2005-08-16 1:56 Martin Langhoff
2005-08-16 2:38 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Martin Langhoff @ 2005-08-16 1:56 UTC (permalink / raw)
To: GIT
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?
cheers,
martin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How do I track pu branch?
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
2005-08-16 3:17 ` Martin Langhoff
0 siblings, 2 replies; 4+ messages in thread
From: Junio C Hamano @ 2005-08-16 2:38 UTC (permalink / raw)
To: Martin Langhoff; +Cc: git
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?
I suspect the Subject: line and your question do not mesh well,
but anyway..
$ git ls-remote http://www.kernel.org/pub/scm/git/git.git/
2150cc99fe29fd81db1e9c5971e13bcb78373ebf refs/heads/master
ce1eb6614e4e8308585b75029ad0823389890eb9 refs/heads/pu
14fb44880c1143ae0259842c808c036e78b516f6 refs/heads/rc
0918385dbd9656cab0d1d81ba7453d49bbc16250 refs/tags/junio-gpg-pub
d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99
f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1
c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2
7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3
b3e9704ecdf48869f635f0aa99ddfb513f885aff refs/tags/v0.99.4
NOTE. When talking to http(s) URL, the server side needs to be
prepared to support the dumb server protocol. That is, to have
run git-update-server-info there whenever the repository is
updated. Other transports do not have this restriction.
-jc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How do I track pu branch?
2005-08-16 2:38 ` Junio C Hamano
@ 2005-08-16 2:55 ` Junio C Hamano
2005-08-16 3:17 ` Martin Langhoff
1 sibling, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2005-08-16 2:55 UTC (permalink / raw)
To: Martin Langhoff; +Cc: git
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How do I track pu branch?
2005-08-16 2:38 ` Junio C Hamano
2005-08-16 2:55 ` Junio C Hamano
@ 2005-08-16 3:17 ` Martin Langhoff
1 sibling, 0 replies; 4+ messages in thread
From: Martin Langhoff @ 2005-08-16 3:17 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
On 8/16/05, Junio C Hamano <junkio@cox.net> wrote:
> 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?
>
> I suspect the Subject: line and your question do not mesh well,
> but anyway..
And even then, your answer is great. Thanks!
I was half-expecting a mechanism to track "all branches/heads from a
remote repo" by rsync'ing the refs/heads directory outside of the git
protocol. That's perhaps why I had the wrong mindset.
All in all, it is a bit of a roundabout way of tracking things.
cheers,
martin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-08-16 3:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2005-08-16 3:17 ` Martin Langhoff
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).