shithub: furgit

ref: 1734207266752b9464f42c31f7728a7e3c692c50
dir: /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
}