Skip to content

Commit 2ed1960

Browse files
bk2204gitster
authored andcommitted
log-tree: switch GIT_SHA1_HEXSZ to the_hash_algo->hexsz
Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 02afca1 commit 2ed1960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

log-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ void show_log(struct rev_info *opt)
545545
struct strbuf msgbuf = STRBUF_INIT;
546546
struct log_info *log = opt->loginfo;
547547
struct commit *commit = log->commit, *parent = log->parent;
548-
int abbrev_commit = opt->abbrev_commit ? opt->abbrev : GIT_SHA1_HEXSZ;
548+
int abbrev_commit = opt->abbrev_commit ? opt->abbrev : the_hash_algo->hexsz;
549549
const char *extra_headers = opt->extra_headers;
550550
struct pretty_print_context ctx = {0};
551551

0 commit comments

Comments
 (0)