aboutsummaryrefslogtreecommitdiff
path: root/commitgraph/read/layer.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-10 13:30:48 +0800
committerGravatar Runxi Yu2026-03-10 13:30:48 +0800
commit73e602a5c2c766caba59948e91c11122653705ec (patch)
tree57951a4275dd90c2b3953e5b4bf3c9a7bd09b84a /commitgraph/read/layer.go
parent*: Move sideband64k and pktline to protocol/ (diff)
signatureNo signature
commitgraph: Move out of format/
Diffstat (limited to 'commitgraph/read/layer.go')
-rw-r--r--commitgraph/read/layer.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/commitgraph/read/layer.go b/commitgraph/read/layer.go
new file mode 100644
index 00000000..3b8abcd2
--- /dev/null
+++ b/commitgraph/read/layer.go
@@ -0,0 +1,28 @@
+package read
+
+import (
+ "os"
+
+ "codeberg.org/lindenii/furgit/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
+}