shorten_unambiguous_ref(): add strict mode
commit6e7b3309d356077337b8222683a743c27fa7276c
authorBert Wesarg <bert.wesarg@googlemail.com>
Mon, 13 Apr 2009 10:25:46 +0000 (13 12:25 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Apr 2009 16:36:44 +0000 (13 09:36 -0700)
tree64b2fc3c755697457c22b3eb5b121707a16c395b
parentf800b65bea1504299747e7be03ee279508a74e1f
shorten_unambiguous_ref(): add strict mode

Add the strict mode of abbreviation to shorten_unambiguous_ref(), i.e. the
resulting ref won't trigger the ambiguous ref warning.

All users of shorten_unambiguous_ref() still use the loose mode.

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-branch.c
builtin-for-each-ref.c
refs.c
refs.h