We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02afca1 commit 2ed1960Copy full SHA for 2ed1960
log-tree.c
@@ -545,7 +545,7 @@ void show_log(struct rev_info *opt)
545
struct strbuf msgbuf = STRBUF_INIT;
546
struct log_info *log = opt->loginfo;
547
struct commit *commit = log->commit, *parent = log->parent;
548
- int abbrev_commit = opt->abbrev_commit ? opt->abbrev : GIT_SHA1_HEXSZ;
+ int abbrev_commit = opt->abbrev_commit ? opt->abbrev : the_hash_algo->hexsz;
549
const char *extra_headers = opt->extra_headers;
550
struct pretty_print_context ctx = {0};
551
0 commit comments