aboutsummaryrefslogtreecommitdiff
path: root/bloom.h
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2024-06-25 13:39:54 -0400
committerJunio C Hamano <gitster@pobox.com>2024-06-25 13:52:06 -0700
commit5b5d5b598ccb8d5eb8a1de3abbf7b5829f9ac4fe (patch)
tree22b1f42a28541662f90396f2ebf954798e59271e /bloom.h
parentea0024deb9faa5474673a3db8f4f98812b48f44d (diff)
downloadgit-5b5d5b598ccb8d5eb8a1de3abbf7b5829f9ac4fe.tar.xz
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 <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bloom.h')
-rw-r--r--bloom.h1
1 files changed, 1 insertions, 0 deletions
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;
};
/*