threads / patch / 23886

patchshow-branch: use DEFAULT_ABBREV instead of 7

Subject: [PATCH] show-branch: use DEFAULT_ABBREV instead of 7

## tl;dr

One message between May 24, 2010 and May 24, 2010. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Tay Ray Chuan· May 24, 2010, 08:50 UTC · lore
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
---
 builtin/show-branch.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Show changes to builtin/show-branch.c +2 −2
diff --git a/builtin/show-branch.c b/builtin/show-branch.c
index e20fcf3..e8719aa 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);
--
1.7.1.189.g07419

← back to recent threads