aboutsummaryrefslogtreecommitdiff
path: root/commitgraph/read/reader.go
blob: d5c84a706b71253dc50ea9aea31e757bbdecb400 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package read

import objectid "codeberg.org/lindenii/furgit/object/id"

// Reader provides read-only access to one mmap-backed commit-graph snapshot.
//
// It is safe for concurrent read-only queries.
// Values returned by Reader methods are only valid until the reader is closed
// when explicitly documented on that method.
type Reader struct {
	algo        objectid.Algorithm
	hashVersion uint8

	layers []layer
	total  uint32
}