diff options
author | Tay Ray Chuan <rctay89@gmail.com> | 2010-05-24 16:50:44 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-05-25 09:48:49 -0700 |
commit | bd7440fe1b22ff47daba1990653994e8a7128054 (patch) | |
tree | 82f528d15415ff781d947e52b04c618625a2b157 | |
parent | e8f30160007d976746d880dab73b805435e04149 (diff) | |
download | git-bd7440fe1b22ff47daba1990653994e8a7128054.tar.gz |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/show-branch.c b/builtin/show-branch.c index e20fcf3e93..e8719aa9e9 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); |