bloom.h: make `load_bloom_filter_from_graph()` public

Prepare for a future commit to use the load_bloom_filter_from_graph() function directly to load specific Bloom filters out of the commit-graph for manual inspection (to be used during tests). Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Taylor Blau committed Jun 25, 2024 at 13:39 UTC a09858d43d818cfd23a9408a41460301741fa251
2 files changed +8 -3
bloom.c
+3 -3
@@ -48,9 +48,9 @@ static int check_bloom_offset(struct commit_graph *g, uint32_t pos,
48 return -1;
49 }
50
51 -static int load_bloom_filter_from_graph(struct commit_graph *g,
52 - struct bloom_filter *filter,
53 - uint32_t graph_pos)
51 +int load_bloom_filter_from_graph(struct commit_graph *g,
52 + struct bloom_filter *filter,
53 + uint32_t graph_pos)
54 {
55 uint32_t lex_pos, start_index, end_index;
56
bloom.h
+5
@@ -3,6 +3,7 @@
3
4 struct commit;
5 struct repository;
6 +struct commit_graph;
7
8 struct bloom_filter_settings {
9 /*
@@ -68,6 +69,10 @@ struct bloom_key {
69 uint32_t *hashes;
70 };
71
72 +int load_bloom_filter_from_graph(struct commit_graph *g,
73 + struct bloom_filter *filter,
74 + uint32_t graph_pos);
75 +
76 /*
77 * Calculate the murmur3 32-bit hash value for the given data
78 * using the given seed.