Code

Avoid ambiguity between refname and filename in rev-parse
authorLinus Torvalds <torvalds@osdl.org>
Tue, 18 Oct 2005 07:16:45 +0000 (00:16 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 18 Oct 2005 07:16:45 +0000 (00:16 -0700)
commit7a3dd472ad2c69b7450a59eb2a35efb0698993d0
tree62492363d710bbd6b532cbecf74f8743d8e87099
parentcdb3950801fec8e9efa1607093a6e51737bacba0
Avoid ambiguity between refname and filename in rev-parse

Although it really is very convenient, not requiring explicit
'-r' option to name revs is sometimes ambiguous.

Usually we allow a "--" to say where a filename starts when it
_is_ ambiguous.  However, we fail that at times. In particular,
git-rev-parse fails it.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
rev-parse.c