Fast implementation of Git in pure Go codeberg.org/lindenii/furgit
git go
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 11 lines 402 B view raw
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}