blob: 65e90ec8315bf7e7f4a183000edc92c4eb76daff (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package commitquery
import (
commitgraphread "codeberg.org/lindenii/furgit/format/commitgraph/read"
objectfetch "codeberg.org/lindenii/furgit/object/fetch"
objectid "codeberg.org/lindenii/furgit/object/id"
)
// query stores one mutable reusable worker and its cached node arena.
//
// Labels: MT-Unsafe.
type query struct {
fetcher *objectfetch.Fetcher
graph *commitgraphread.Reader
nodes []node
byOID map[objectid.ObjectID]nodeIndex
byGraphPos map[commitgraphread.Position]nodeIndex
markPhase uint32
touched []nodeIndex
}
|