sha1_name.c: get_describe_name() by definition groks only commits
authorJunio C Hamano <gitster@pobox.com>
Mon, 18 Jun 2012 20:45:56 +0000 (13:45 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jul 2012 23:42:22 +0000 (16:42 -0700)
commit6269b6b676310d9fa2560da49be618372b39acf4
tree1cfc74bf1f6e342000cde5ee18cde1cecb631824
parentaa1dec9ef6ff184792520eb4539af1555c01604c
sha1_name.c: get_describe_name() by definition groks only commits

Teach get_describe_name() to pass the disambiguation hint down the
callchain to get_short_sha1().

Also add tests to show various syntactic elements that we could take
advantage of the object type information to help disambiguration of
abbreviated object names.  Many of them are marked as broken, and
some of them will be fixed in later patches in this series.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_name.c
t/t1512-rev-parse-disambiguation.sh [new file with mode: 0755]