From c62c5544fa23378843a3383a9dcd4494e5ea33bc Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 6 Mar 2026 11:54:21 +0800 Subject: format/commitgraph: Split into ./read and ./ --- format/commitgraph/read/layer.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 format/commitgraph/read/layer.go (limited to 'format/commitgraph/read/layer.go') 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 +} -- cgit v1.3.1-10-gc9f91