aboutsummaryrefslogtreecommitdiff
path: root/pack-bitmap.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-02-20 10:09:32 -0800
committerJunio C Hamano <gitster@pobox.com>2026-02-20 10:09:32 -0800
commit4fa8cfd68ab9ed6fb273a354ff1b5e240cbabc1d (patch)
tree727bb838a214bbdda297fbe6125b270edc4169c5 /pack-bitmap.h
parent73fd77805fc6406f31c36212846d9e2541d19321 (diff)
parent6375a00ef16071eadbb383bd9915e277ef304bfe (diff)
downloadgit-4fa8cfd68ab9ed6fb273a354ff1b5e240cbabc1d.tar.xz
Merge branch 'ps/for-each-ref-in-fixes' into ps/refs-for-each
* ps/for-each-ref-in-fixes: bisect: simplify string_list memory handling bisect: fix misuse of `refs_for_each_ref_in()` pack-bitmap: fix bug with exact ref match in "pack.preferBitmapTips" pack-bitmap: deduplicate logic to iterate over preferred bitmap tips
Diffstat (limited to 'pack-bitmap.h')
-rw-r--r--pack-bitmap.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/pack-bitmap.h b/pack-bitmap.h
index 1bd7a791e2..d0611d0481 100644
--- a/pack-bitmap.h
+++ b/pack-bitmap.h
@@ -5,6 +5,7 @@
#include "khash.h"
#include "pack.h"
#include "pack-objects.h"
+#include "refs.h"
#include "string-list.h"
struct commit;
@@ -99,6 +100,13 @@ int for_each_bitmapped_object(struct bitmap_index *bitmap_git,
show_reachable_fn show_reach,
void *payload);
+/*
+ * Iterate over all references that are configured as preferred bitmap tips via
+ * "pack.preferBitmapTips" and invoke the callback on each function.
+ */
+void for_each_preferred_bitmap_tip(struct repository *repo,
+ each_ref_fn cb, void *cb_data);
+
#define GIT_TEST_PACK_USE_BITMAP_BOUNDARY_TRAVERSAL \
"GIT_TEST_PACK_USE_BITMAP_BOUNDARY_TRAVERSAL"
@@ -182,7 +190,6 @@ char *pack_bitmap_filename(struct packed_git *p);
int bitmap_is_midx(struct bitmap_index *bitmap_git);
-const struct string_list *bitmap_preferred_tips(struct repository *r);
int bitmap_is_preferred_refname(struct repository *r, const char *refname);
int verify_bitmap_files(struct repository *r);