author | Linus Torvalds <torvalds@osdl.org> | |
Tue, 18 Oct 2005 07:16:45 +0000 (00:16 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 18 Oct 2005 07:16:45 +0000 (00:16 -0700) | ||
commit | 7a3dd472ad2c69b7450a59eb2a35efb0698993d0 | |
tree | 62492363d710bbd6b532cbecf74f8743d8e87099 | tree | snapshot |
parent | cdb3950801fec8e9efa1607093a6e51737bacba0 | commit | diff |
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>
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 | diff | blob | history |