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 14 lines 305 B view raw
1package commitquery 2 3// ensureLoaded completes one node's metadata load if it is not loaded yet. 4func (query *query) ensureLoaded(idx nodeIndex) error { 5 if query.nodes[idx].loaded { 6 return nil 7 } 8 9 if query.nodes[idx].hasGraphPos { 10 return query.loadByGraphPos(idx) 11 } 12 13 return query.loadByOID(idx) 14}