Skip to content

Commit bd7440f

Browse files
rctaygitster
authored andcommitted
show-branch: use DEFAULT_ABBREV instead of 7
Signed-off-by: Tay Ray Chuan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e8f3016 commit bd7440f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builtin/show-branch.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ static void show_one_commit(struct commit *commit, int no_name)
313313
}
314314
else
315315
printf("[%s] ",
316-
find_unique_abbrev(commit->object.sha1, 7));
316+
find_unique_abbrev(commit->object.sha1,
317+
DEFAULT_ABBREV));
317318
}
318319
puts(pretty_str);
319320
strbuf_release(&pretty);

0 commit comments

Comments
 (0)