summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-07-16 01:28:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-16 21:27:39 (GMT)
commit2ed1960a77234659c1de49a4b9fc541d9e91f007 (patch)
tree6e032841666cb2763408e7c9a476384565bcf8f8 /log-tree.c
parent02afca1ee4a2d0a5ccc5f81e6d45a6caaef28691 (diff)
downloadgit-2ed1960a77234659c1de49a4b9fc541d9e91f007.zip
git-2ed1960a77234659c1de49a4b9fc541d9e91f007.tar.gz
git-2ed1960a77234659c1de49a4b9fc541d9e91f007.tar.bz2
log-tree: switch GIT_SHA1_HEXSZ to the_hash_algo->hexsz
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log-tree.c b/log-tree.c
index d3a43e2..9655de8 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -545,7 +545,7 @@ void show_log(struct rev_info *opt)
struct strbuf msgbuf = STRBUF_INIT;
struct log_info *log = opt->loginfo;
struct commit *commit = log->commit, *parent = log->parent;
- int abbrev_commit = opt->abbrev_commit ? opt->abbrev : GIT_SHA1_HEXSZ;
+ int abbrev_commit = opt->abbrev_commit ? opt->abbrev : the_hash_algo->hexsz;
const char *extra_headers = opt->extra_headers;
struct pretty_print_context ctx = {0};