aboutsummaryrefslogtreecommitdiff
path: root/format/commitgraph/bloom/constants.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 04:31:54 +0800
committerGravatar Runxi Yu2026-03-06 04:36:57 +0800
commit17eed9abe9743699b561bd5cf13a0eecbe2e27b8 (patch)
tree684a2692ae648f2d9ac00e362cae0b8d0a215895 /format/commitgraph/bloom/constants.go
parentREADME: Learning from git, got, and git9 (diff)
signatureNo signature
format/commitgraph/bloom: Add commit-graph bloom filters
Diffstat (limited to 'format/commitgraph/bloom/constants.go')
-rw-r--r--format/commitgraph/bloom/constants.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/format/commitgraph/bloom/constants.go b/format/commitgraph/bloom/constants.go
new file mode 100644
index 00000000..958e551e
--- /dev/null
+++ b/format/commitgraph/bloom/constants.go
@@ -0,0 +1,8 @@
+package bloom
+
+const (
+ // DataHeaderSize is the size of the BDAT header in commit-graph files.
+ DataHeaderSize = 3 * 4
+ // DefaultMaxChange matches Git's default max-changed-paths behavior.
+ DefaultMaxChange = 512
+)