From 5b5d5b598ccb8d5eb8a1de3abbf7b5829f9ac4fe Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Tue, 25 Jun 2024 13:39:54 -0400 Subject: bloom: annotate filters with hash version In subsequent commits, we will want to load existing Bloom filters out of a commit-graph, even when the hash version they were computed with does not match the value of `commitGraph.changedPathVersion`. In order to differentiate between the two, add a "version" field to each Bloom filter. Signed-off-by: Taylor Blau Signed-off-by: Junio C Hamano --- bloom.h | 1 + 1 file changed, 1 insertion(+) (limited to 'bloom.h') diff --git a/bloom.h b/bloom.h index 1e4f612d2c..c9dd7d4022 100644 --- a/bloom.h +++ b/bloom.h @@ -53,6 +53,7 @@ struct bloom_filter_settings { struct bloom_filter { unsigned char *data; size_t len; + int version; }; /* -- cgit v1.3-5-g9baa