summaryrefslogtreecommitdiff
path: root/pack-bitmap.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2019-12-18 11:25:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-23 18:51:50 (GMT)
commit40d18ff8c6b6977eaf8450dc4eeb866ece5298fc (patch)
tree9beea48f7024ff26c727872764a47ab144a14a2b /pack-bitmap.h
parent14fbd260442b14813e142f762050313daee1f18d (diff)
downloadgit-40d18ff8c6b6977eaf8450dc4eeb866ece5298fc.zip
git-40d18ff8c6b6977eaf8450dc4eeb866ece5298fc.tar.gz
git-40d18ff8c6b6977eaf8450dc4eeb866ece5298fc.tar.bz2
pack-bitmap: introduce bitmap_walk_contains()
We will use this helper function in a following commit to tell us if an object is packed. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-bitmap.h')
-rw-r--r--pack-bitmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pack-bitmap.h b/pack-bitmap.h
index 00de3ec..5425767 100644
--- a/pack-bitmap.h
+++ b/pack-bitmap.h
@@ -3,6 +3,7 @@
#include "ewah/ewok.h"
#include "khash.h"
+#include "pack.h"
#include "pack-objects.h"
struct commit;
@@ -53,6 +54,8 @@ int reuse_partial_packfile_from_bitmap(struct bitmap_index *,
int rebuild_existing_bitmaps(struct bitmap_index *, struct packing_data *mapping,
kh_oid_map_t *reused_bitmaps, int show_progress);
void free_bitmap_index(struct bitmap_index *);
+int bitmap_walk_contains(struct bitmap_index *,
+ struct bitmap *bitmap, const struct object_id *oid);
/*
* After a traversal has been performed by prepare_bitmap_walk(), this can be