summaryrefslogtreecommitdiff
path: root/pack-bitmap.h
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2021-04-01 01:32:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-04-01 06:14:03 (GMT)
commitdff5e49e51bfddbbeb5ed1f07031ccbd0bc216dc (patch)
tree89b2b55cb93ef11ec1fc0400c3c4c157281bcad8 /pack-bitmap.h
parenta65ce7f831aa5fcc596c6d23fcde543d98b39bd7 (diff)
downloadgit-dff5e49e51bfddbbeb5ed1f07031ccbd0bc216dc.zip
git-dff5e49e51bfddbbeb5ed1f07031ccbd0bc216dc.tar.gz
git-dff5e49e51bfddbbeb5ed1f07031ccbd0bc216dc.tar.bz2
pack-bitmap: add 'test_bitmap_commits()' helper
The next patch will add a 'bitmap' test-tool which prints the list of commits that have bitmaps computed. The test helper could implement this itself, but it would need access to the 'bitmaps' field of the 'pack_bitmap' struct. To avoid exposing this private detail, implement the entirety of the helper behind a test_bitmap_commits() function in pack-bitmap.c. There is some precedence for this with test_bitmap_walk() which is used to implement the '--test-bitmap' flag in 'git rev-list' (and is also implemented in pack-bitmap.c). A caller will be added in the next patch. Signed-off-by: Taylor Blau <me@ttaylorr.com> 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 36d9993..c3cdd80 100644
--- a/pack-bitmap.h
+++ b/pack-bitmap.h
@@ -49,6 +49,7 @@ void traverse_bitmap_commit_list(struct bitmap_index *,
struct rev_info *revs,
show_reachable_fn show_reachable);
void test_bitmap_walk(struct rev_info *revs);
+int test_bitmap_commits(struct repository *r);
struct bitmap_index *prepare_bitmap_walk(struct rev_info *revs,
struct list_objects_filter_options *filter);
int reuse_partial_packfile_from_bitmap(struct bitmap_index *,