aboutsummaryrefslogtreecommitdiff
path: root/midx-write.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-02-03 10:23:34 -0800
committerJunio C Hamano <gitster@pobox.com>2025-02-03 10:23:34 -0800
commitb83a2f9006cdf5293370b1254f4f4cb2770c1b9f (patch)
tree5f09867e19b13f6f513b8881fdf5d03f906079b5 /midx-write.c
parentf49905d47d42cf6ea4c34b5a8301e84149e7aeba (diff)
parent8705c9bd139028aae148251420da27c9bf1c4745 (diff)
downloadgit-b83a2f9006cdf5293370b1254f4f4cb2770c1b9f.tar.xz
Merge branch 'kn/pack-write-with-reduced-globals'
Code clean-up. * kn/pack-write-with-reduced-globals: pack-write: pass hash_algo to internal functions pack-write: pass hash_algo to `write_rev_file()` pack-write: pass hash_algo to `write_idx_file()` pack-write: pass repository to `index_pack_lockfile()` pack-write: pass hash_algo to `fixup_pack_header_footer()`
Diffstat (limited to 'midx-write.c')
-rw-r--r--midx-write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/midx-write.c b/midx-write.c
index b3827b936b..61b59d557d 100644
--- a/midx-write.c
+++ b/midx-write.c
@@ -658,8 +658,8 @@ static void write_midx_reverse_index(char *midx_name, unsigned char *midx_hash,
strbuf_addf(&buf, "%s-%s.rev", midx_name, hash_to_hex_algop(midx_hash,
ctx->repo->hash_algo));
- tmp_file = write_rev_file_order(NULL, ctx->pack_order, ctx->entries_nr,
- midx_hash, WRITE_REV);
+ tmp_file = write_rev_file_order(ctx->repo->hash_algo, NULL, ctx->pack_order,
+ ctx->entries_nr, midx_hash, WRITE_REV);
if (finalize_object_file(tmp_file, buf.buf))
die(_("cannot store reverse index file"));