Re: (unknown)
From: Josef Weidendorfer <hidden>
Date: 2016-08-11 19:28:23
On Thursday 26 October 2006 00:20, Junio C Hamano wrote:
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?