From: Junio C Hamano Date: Thu, 21 Jun 2012 06:03:09 +0000 (-0700) Subject: sha1_name.c: teach get_short_sha1() a commit-only option X-Git-Tag: v1.7.12-rc0~22^2~15 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/aa1dec9ef6ff184792520eb4539af1555c01604c?ds=inline;hp=aa1dec9ef6ff184792520eb4539af1555c01604c sha1_name.c: teach get_short_sha1() a commit-only option When the caller knows that the parameter is meant to name a commit, e.g. "56789a" in describe name "v1.2.3-4-g56789a", pass that as a hint so that lower level can use it to disambiguate objects when there is only one commit whose name begins with 56789a even if there are objects of other types whose names share the same prefix. Signed-off-by: Junio C Hamano ---