Skip to content

Commit a09858d

Browse files
ttaylorrgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Jonathan Tan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]> Signed-off-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 460b156 commit a09858d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

bloom.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ static int check_bloom_offset(struct commit_graph *g, uint32_t pos,
4848
return -1;
4949
}
5050

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)
5454
{
5555
uint32_t lex_pos, start_index, end_index;
5656

bloom.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
struct commit;
55
struct repository;
6+
struct commit_graph;
67

78
struct bloom_filter_settings {
89
/*
@@ -68,6 +69,10 @@ struct bloom_key {
6869
uint32_t *hashes;
6970
};
7071

72+
int load_bloom_filter_from_graph(struct commit_graph *g,
73+
struct bloom_filter *filter,
74+
uint32_t graph_pos);
75+
7176
/*
7277
* Calculate the murmur3 32-bit hash value for the given data
7378
* using the given seed.

0 commit comments

Comments
 (0)