summaryrefslogtreecommitdiffstats
path: root/midx.h
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2024-08-06 17:37:58 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-06 21:01:38 +0200
commit3592796d0a176f51bb257b31dd9afe12a5af7932 (patch)
tree74b2a4712015e2523031e725f2979bdfca096e45 /midx.h
parentmidx: support reading incremental MIDX chains (diff)
downloadgit-3592796d0a176f51bb257b31dd9afe12a5af7932.tar.xz
git-3592796d0a176f51bb257b31dd9afe12a5af7932.zip
midx: implement verification support for incremental MIDXs
Teach the verification implementation used by `git multi-pack-index verify` to perform verification for incremental MIDX chains by independently validating each layer within the chain. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'midx.h')
-rw-r--r--midx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/midx.h b/midx.h
index 94de16a8c4..9d30935589 100644
--- a/midx.h
+++ b/midx.h
@@ -95,6 +95,8 @@ void get_split_midx_filename_ext(struct strbuf *buf, const char *object_dir,
struct multi_pack_index *load_multi_pack_index(const char *object_dir, int local);
int prepare_midx_pack(struct repository *r, struct multi_pack_index *m, uint32_t pack_int_id);
+struct packed_git *nth_midxed_pack(struct multi_pack_index *m,
+ uint32_t pack_int_id);
int nth_bitmapped_pack(struct repository *r, struct multi_pack_index *m,
struct bitmapped_pack *bp, uint32_t pack_int_id);
int bsearch_one_midx(const struct object_id *oid, struct multi_pack_index *m,