show-branch: use DEFAULT_ABBREV instead of 7
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Tay Ray Chuan committed
May 24, 2010 at 16:50 UTC
bd7440fe1b22ff47daba1990653994e8a7128054
1 file changed
+2
-1
builtin/show-branch.c
+2
-1
@@ -313,7 +313,8 @@ static void show_one_commit(struct commit *commit, int no_name)
313
}
314
else
315
printf("[%s] ",
316
- find_unique_abbrev(commit->object.sha1, 7));
316
+ find_unique_abbrev(commit->object.sha1,
317
+ DEFAULT_ABBREV));
318
}
319
puts(pretty_str);
320
strbuf_release(&pretty);