aboutsummaryrefslogtreecommitdiffstats
path: root/pack-bitmap.h
diff options
context:
space:
mode:
authorLidong Yan <502024330056@smail.nju.edu.cn>2025-07-01 05:32:09 +0000
committerJunio C Hamano <gitster@pobox.com>2025-07-01 14:41:54 -0700
commitbfd5522e98cead32d7bbdf54eca4ffeb3e01fa6b (patch)
treeb9da4c53ebbbd88ff78112aed0ff78f1a19ee97d /pack-bitmap.h
parentpack-bitmap: reword comments in test_bitmap_commits() (diff)
downloadgit-bfd5522e98cead32d7bbdf54eca4ffeb3e01fa6b.tar.gz
git-bfd5522e98cead32d7bbdf54eca4ffeb3e01fa6b.zip
pack-bitmap: add load corrupt bitmap test
t5310 lacks a test to ensure git works correctly when commit bitmap data is corrupted. So this patch add test helper in pack-bitmap.c to list each commit bitmap position in bitmap file and `load corrupt bitmap` test case in t/t5310 to corrupt a commit bitmap before loading it. Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-bitmap.h')
-rw-r--r--pack-bitmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pack-bitmap.h b/pack-bitmap.h
index 382d39499a..1bd7a791e2 100644
--- a/pack-bitmap.h
+++ b/pack-bitmap.h
@@ -81,6 +81,7 @@ void traverse_bitmap_commit_list(struct bitmap_index *,
show_reachable_fn show_reachable);
void test_bitmap_walk(struct rev_info *revs);
int test_bitmap_commits(struct repository *r);
+int test_bitmap_commits_with_offset(struct repository *r);
int test_bitmap_hashes(struct repository *r);
int test_bitmap_pseudo_merges(struct repository *r);
int test_bitmap_pseudo_merge_commits(struct repository *r, uint32_t n);