aboutsummaryrefslogtreecommitdiff
path: root/format/commitgraph/layer.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 10:57:15 +0800
committerGravatar Runxi Yu2026-03-06 10:57:15 +0800
commitbd9ca0ee6f4645d31335d63d35d3b495afa32cc5 (patch)
tree5462b7dc5f218e373b47091f4aba488b697a38e9 /format/commitgraph/layer.go
parentconfig: Split files (diff)
signatureNo signature
format/commitgraph: Split layer files
Diffstat (limited to 'format/commitgraph/layer.go')
-rw-r--r--format/commitgraph/layer.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/format/commitgraph/layer.go b/format/commitgraph/layer.go
new file mode 100644
index 00000000..3f6011cc
--- /dev/null
+++ b/format/commitgraph/layer.go
@@ -0,0 +1,28 @@
+package commitgraph
+
+import (
+ "os"
+
+ "codeberg.org/lindenii/furgit/format/commitgraph/bloom"
+)
+
+type layer struct {
+ path string
+ file *os.File
+ data []byte
+ numCommits uint32
+ baseCount uint32
+ globalFrom uint32
+
+ chunkOIDFanout []byte
+ chunkOIDLookup []byte
+ chunkCommit []byte
+ chunkGeneration []byte
+ chunkGenerationOv []byte
+ chunkExtraEdges []byte
+ chunkBloomIndex []byte
+ chunkBloomData []byte
+ chunkBaseGraphs []byte
+
+ bloomSettings *bloom.Settings
+}