Re: (unknown)
- From
- Josef Weidendorfer <josef.weidendorfer@gmx.de>
- Date
- Oct 26, 2006, 13:22 UTC
- Message-ID
- <200610261522.44433.Josef.Weidendorfer@gmx.de>
- In-Reply-To
- <7vwt6okpgr.fsf@assigned-by-dhcp.cox.net>
On Thursday 26 October 2006 00:20, Junio C Hamano wrote:
Show 5 quoted lines
> Heh, I spoke too fast. > > "git log origin..master" > > If you do not have none of .git/origin
Really? I thought refs are always looked up in ".git/refs" only?
> , .git/refs/origin, > .git/refs/tags/origin, .git/refs/heads/origin, nor > .git/refs/remotes/origin, then .git/refs/remotes/origin/HEAD is > what "origin" means (see get_sha1_basic() in sha1_name.c).
Yes.
However, IMHO it really should be a alias to "remotes/origin/<branch>", depending on current "<branch>" you are on. AFAI can remember, when implementing it, HEAD was choosen as sha1_name.c should not cope with porcelain issues (e.g. getting current branch name). It was the intention to change remotes/origin/HEAD in the porcelain command before actual use.
Is this still sensible?