Code

Fix extended short SHA1 name completion
authorLinus Torvalds <torvalds@osdl.org>
Mon, 19 Sep 2005 22:16:03 +0000 (15:16 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 20 Sep 2005 22:04:19 +0000 (15:04 -0700)
commitaf61c6e008c39ee9f61af33bb48850230f503443
tree13120b0878ce98f84ac569ac9bea904e2b4ded61
parent343d35c9166cf1713eb2787c3506fd2663466262
Fix extended short SHA1 name completion

get_sha1() would not do sha1 completion of short SHA1's when they were
part of a more complex expression.  So doing

git-rev-parse 727132834e6be48a93c1bd6458a29d474ce7d5d5^

would work, and return 87c6aeb4efdd4355918d127a91bd0adc5a02f8ff. But using
the shorthand version

git-rev-list 72713^

wouldn't work.

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