Fast implementation of Git in pure Go
codeberg.org/lindenii/furgit
git
go
1package commitquery
2
3// hasAnyMarks reports whether one internal node has any requested bit.
4func (query *query) hasAnyMarks(idx nodeIndex, bits markBits) bool {
5 return query.nodes[idx].marks&bits != 0
6}
7
8// hasAllMarks reports whether one internal node already has all requested bits.
9func (query *query) hasAllMarks(idx nodeIndex, bits markBits) bool {
10 return query.nodes[idx].marks&bits == bits
11}