aboutsummaryrefslogtreecommitdiff
path: root/builtin-for-each-ref.c
diff options
context:
space:
mode:
authorBert Wesarg <bert.wesarg@googlemail.com>2009-04-13 12:25:46 +0200
committerJunio C Hamano <gitster@pobox.com>2009-04-13 09:36:44 -0700
commit6e7b3309d356077337b8222683a743c27fa7276c (patch)
tree64b2fc3c755697457c22b3eb5b121707a16c395b /builtin-for-each-ref.c
parentf800b65bea1504299747e7be03ee279508a74e1f (diff)
downloadgit-6e7b3309d356077337b8222683a743c27fa7276c.tar.gz
git-6e7b3309d356077337b8222683a743c27fa7276c.tar.xz
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>
Diffstat (limited to 'builtin-for-each-ref.c')
-rw-r--r--builtin-for-each-ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-for-each-ref.c b/builtin-for-each-ref.c
index c8114c8af..cfff686ac 100644
--- a/builtin-for-each-ref.c
+++ b/builtin-for-each-ref.c
@@ -601,7 +601,7 @@ static void populate_value(struct refinfo *ref)
if (formatp) {
formatp++;
if (!strcmp(formatp, "short"))
- refname = shorten_unambiguous_ref(refname);
+ refname = shorten_unambiguous_ref(refname, 0);
else
die("unknown %.*s format %s",
(int)(formatp - name), name, formatp);