Skip to contentSkip to conversation

show-branch: use DEFAULT_ABBREV instead of 7

PATCH New Tay Ray Chuan 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 show-branch: use DEFAULT_ABBREV instead of 7

---
 builtin/show-branch.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
builtin/show-branch.c +2 -1
index e20fcf3..e8719aa 100644
@@ -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);

--
1.7.1.189.g07419