Skip to content

Commit

Permalink
show-branch: use DEFAULT_ABBREV instead of 7
Browse files Browse the repository at this point in the history
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Tay Ray Chuan authored and Junio C Hamano committed May 25, 2010
1 parent e8f3016 commit bd7440f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builtin/show-branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bd7440f

Please sign in to comment.