Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
log-tree: switch GIT_SHA1_HEXSZ to the_hash_algo->hexsz
author
brian m. carlson
<sandals@crustytoothpaste.net>
Mon, 16 Jul 2018 01:28:06 +0000
(
01:28
+0000)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 16 Jul 2018 21:27:39 +0000
(14:27 -0700)
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
log-tree.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
02afca1
)
diff --git
a/log-tree.c
b/log-tree.c
index d3a43e29cd50e0afb015f1a5efdb82fd195d9c93..9655de8ad73ceb90e2de4ad55e4ec93072b4465f 100644
(file)
--- 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};