aboutsummaryrefslogtreecommitdiff
path: root/format/commitgraph/read/layer.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 11:54:21 +0800
committerGravatar Runxi Yu2026-03-06 11:55:56 +0800
commitc62c5544fa23378843a3383a9dcd4494e5ea33bc (patch)
tree8b825a36767fe0ba3fb44f27cb634047c4c0318f /format/commitgraph/read/layer.go
parentformat/pack/ingest: Fix delta apply import (diff)
signatureNo signature
format/commitgraph: Split into ./read and ./ v0.1.60
Diffstat (limited to 'format/commitgraph/read/layer.go')
-rw-r--r--format/commitgraph/read/layer.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/format/commitgraph/read/layer.go b/format/commitgraph/read/layer.go
new file mode 100644
index 00000000..53ab1663
--- /dev/null
+++ b/format/commitgraph/read/layer.go
@@ -0,0 +1,28 @@
+package read
+
+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
+}