aboutsummaryrefslogtreecommitdiff
path: root/commitquery/mark_bits.go
blob: b10c833b71cf4cadae1c0439c8512fd20b3d6b10 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package commitquery

// markBits stores one set of traversal marks on one node.
type markBits uint8

// markLeft, markRight, markStale, and markResult track traversal state.
const (
	markLeft markBits = 1 << iota
	markRight
	markStale
	markResult
)

// allMarks is the union of all defined mark bits.
const (
	allMarks = markLeft | markRight | markStale | markResult
)