diff options
| author | 2026-03-06 11:54:21 +0800 | |
|---|---|---|
| committer | 2026-03-06 11:55:56 +0800 | |
| commit | c62c5544fa23378843a3383a9dcd4494e5ea33bc (patch) | |
| tree | 8b825a36767fe0ba3fb44f27cb634047c4c0318f /format/commitgraph/read/reader.go | |
| parent | format/pack/ingest: Fix delta apply import (diff) | |
| signature | No signature | |
format/commitgraph: Split into ./read and ./ v0.1.60
Diffstat (limited to 'format/commitgraph/read/reader.go')
| -rw-r--r-- | format/commitgraph/read/reader.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/format/commitgraph/read/reader.go b/format/commitgraph/read/reader.go new file mode 100644 index 00000000..922d459b --- /dev/null +++ b/format/commitgraph/read/reader.go @@ -0,0 +1,14 @@ +package read + +import "codeberg.org/lindenii/furgit/objectid" + +// Reader provides read-only access to one mmap-backed commit-graph snapshot. +// +// It is safe for concurrent read-only queries. +type Reader struct { + algo objectid.Algorithm + hashVersion uint8 + + layers []layer + total uint32 +} |
