From bd7440fe1b22ff47daba1990653994e8a7128054 Mon Sep 17 00:00:00 2001 From: Tay Ray Chuan Date: Mon, 24 May 2010 16:50:44 +0800 Subject: [PATCH] show-branch: use DEFAULT_ABBREV instead of 7 Signed-off-by: Tay Ray Chuan Signed-off-by: Junio C Hamano --- builtin/show-branch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtin/show-branch.c b/builtin/show-branch.c index e20fcf3e9..e8719aa9e 100644 --- a/builtin/show-branch.c +++ b/builtin/show-branch.c @@ -313,7 +313,8 @@ static void show_one_commit(struct commit *commit, int no_name) } else printf("[%s] ", - find_unique_abbrev(commit->object.sha1, 7)); + find_unique_abbrev(commit->object.sha1, + DEFAULT_ABBREV)); } puts(pretty_str); strbuf_release(&pretty); -- 2.30.2