diff options
author | Taylor Blau <me@ttaylorr.com> | 2024-08-06 17:37:58 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-06 21:01:38 +0200 |
commit | 3592796d0a176f51bb257b31dd9afe12a5af7932 (patch) | |
tree | 74b2a4712015e2523031e725f2979bdfca096e45 /midx.h | |
parent | midx: support reading incremental MIDX chains (diff) | |
download | git-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, |