]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/rev-parse.c
git-rev-parse: parse ".." before simple SHA1's
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 20 Jun 2005 15:29:13 +0000 (08:29 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 20 Jun 2005 15:29:13 +0000 (08:29 -0700)
commit800644c5cb3aad99a229a09112f42fa88b63c1c4
tree8273c6e88004a86de60bca391f0891e46265e66f
parentfc4263ce4b6a613622dbe985a8e6aca015789cf1
git-rev-parse: parse ".." before simple SHA1's

This fixes "<hexsha1>..*", since get_sha1() will happily ignore any
garbage at the end and thus we never got to the ".." check before.
rev-parse.c