shithub: furgit

ref: c3731c4eff12cc9e6636f89128948d86596ad860
dir: /format/commitgraph/read/reader.go/

View raw version
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
}