]> git.ipfire.org Git - thirdparty/git.git/blobdiff - bloom.h
commit-graph.c: store maximum changed paths
[thirdparty/git.git] / bloom.h
diff --git a/bloom.h b/bloom.h
index d8fbb0fbf19631ccb33d2e57590f977467579102..0b9b59a6fea667fcc510dddb7d237e2383111c36 100644 (file)
--- a/bloom.h
+++ b/bloom.h
@@ -28,9 +28,18 @@ struct bloom_filter_settings {
         * that contain n*b bits.
         */
        uint32_t bits_per_entry;
+
+       /*
+        * The maximum number of changed paths per commit
+        * before declaring a Bloom filter to be too-large.
+        *
+        * Not written to the commit-graph file.
+        */
+       uint32_t max_changed_paths;
 };
 
-#define DEFAULT_BLOOM_FILTER_SETTINGS { 1, 7, 10 }
+#define DEFAULT_BLOOM_MAX_CHANGES 512
+#define DEFAULT_BLOOM_FILTER_SETTINGS { 1, 7, 10, DEFAULT_BLOOM_MAX_CHANGES }
 #define BITS_PER_WORD 8
 #define BLOOMDATA_CHUNK_HEADER_SIZE 3 * sizeof(uint32_t)