diff options
| author | 2026-03-06 04:31:54 +0800 | |
|---|---|---|
| committer | 2026-03-06 04:36:57 +0800 | |
| commit | 17eed9abe9743699b561bd5cf13a0eecbe2e27b8 (patch) | |
| tree | 684a2692ae648f2d9ac00e362cae0b8d0a215895 /format/commitgraph/bloom/constants.go | |
| parent | README: Learning from git, got, and git9 (diff) | |
| signature | No signature | |
format/commitgraph/bloom: Add commit-graph bloom filters
Diffstat (limited to 'format/commitgraph/bloom/constants.go')
| -rw-r--r-- | format/commitgraph/bloom/constants.go | 8 |
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 +) |
