aboutsummaryrefslogtreecommitdiffstats
path: root/pack-revindex.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-06-07 10:57:23 -0700
committerJunio C Hamano <gitster@pobox.com>2024-06-07 10:57:23 -0700
commit1b76f065085811104b5f4adff001956d7e5c5d1c (patch)
treef331e43e85de3767abb7f8d353fa174db344f1f3 /pack-revindex.c
parentThe eleventh batch (diff)
parentpack-bitmap.c: reimplement `midx_bitmap_filename()` with helper (diff)
downloadgit-master.tar.xz
git-master.zip
Merge branch 'tb/midx-write-cleanup'HEADmaster
Code clean-up around writing the .midx files. * tb/midx-write-cleanup: pack-bitmap.c: reimplement `midx_bitmap_filename()` with helper midx: replace `get_midx_rev_filename()` with a generic helper midx-write.c: support reading an existing MIDX with `packs_to_include` midx-write.c: extract `fill_packs_from_midx()` midx-write.c: extract `should_include_pack()` midx-write.c: pass `start_pack` to `compute_sorted_entries()` midx-write.c: reduce argument count for `get_sorted_entries()` midx-write.c: tolerate `--preferred-pack` without bitmaps
Diffstat (limited to 'pack-revindex.c')
-rw-r--r--pack-revindex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pack-revindex.c b/pack-revindex.c
index a7624d8be8e..fc63aa76a26 100644
--- a/pack-revindex.c
+++ b/pack-revindex.c
@@ -381,7 +381,8 @@ int load_midx_revindex(struct multi_pack_index *m)
trace2_data_string("load_midx_revindex", the_repository,
"source", "rev");
- get_midx_rev_filename(&revindex_name, m);
+ get_midx_filename_ext(&revindex_name, m->object_dir,
+ get_midx_checksum(m), MIDX_EXT_REV);
ret = load_revindex_from_disk(revindex_name.buf,
m->num_objects,