Browse Source

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>
maint
Tay Ray Chuan 15 years ago committed by Junio C Hamano
parent
commit
bd7440fe1b
  1. 3
      builtin/show-branch.c

3
builtin/show-branch.c

@ -313,7 +313,8 @@ static void show_one_commit(struct commit *commit, int no_name) @@ -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);

Loading…
Cancel
Save