summaryrefslogtreecommitdiff
path: root/combine-diff.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2019-08-18 20:04:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-08-19 22:04:58 (GMT)
commit976ff7e49d722d1b72effb6d547ec2b00cd69fc0 (patch)
tree5b6bfc6c667f0028bf1a3026a5ee9e322ad3f766 /combine-diff.c
parent703d2d4193738526d7b4116657657101e49a601e (diff)
downloadgit-976ff7e49d722d1b72effb6d547ec2b00cd69fc0.zip
git-976ff7e49d722d1b72effb6d547ec2b00cd69fc0.tar.gz
git-976ff7e49d722d1b72effb6d547ec2b00cd69fc0.tar.bz2
combine-diff: replace GIT_SHA1_HEXSZ with the_hash_algo
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'combine-diff.c')
-rw-r--r--combine-diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/combine-diff.c b/combine-diff.c
index 3e49f3b..d5c4d83 100644
--- a/combine-diff.c
+++ b/combine-diff.c
@@ -930,7 +930,7 @@ static void show_combined_header(struct combine_diff_path *elem,
int show_file_header)
{
struct diff_options *opt = &rev->diffopt;
- int abbrev = opt->flags.full_index ? GIT_SHA1_HEXSZ : DEFAULT_ABBREV;
+ int abbrev = opt->flags.full_index ? the_hash_algo->hexsz : DEFAULT_ABBREV;
const char *a_prefix = opt->a_prefix ? opt->a_prefix : "a/";
const char *b_prefix = opt->b_prefix ? opt->b_prefix : "b/";
const char *c_meta = diff_get_color_opt(opt, DIFF_METAINFO);