aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTay Ray Chuan <rctay89@gmail.com>2010-05-24 16:50:44 +0800
committerJunio C Hamano <gitster@pobox.com>2010-05-25 09:48:49 -0700
commitbd7440fe1b22ff47daba1990653994e8a7128054 (patch)
tree82f528d15415ff781d947e52b04c618625a2b157
parente8f30160007d976746d880dab73b805435e04149 (diff)
downloadgit-bd7440fe1b22ff47daba1990653994e8a7128054.tar.gz
git-bd7440fe1b22ff47daba1990653994e8a7128054.tar.xz
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>
-rw-r--r--builtin/show-branch.c3
1 files changed, 2 insertions, 1 deletions
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);