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 3import objectid "codeberg.org/lindenii/furgit/object/id" 4 5// newNode allocates one empty internal node. 6func (query *query) newNode(id objectid.ObjectID) nodeIndex { 7 count := len(query.nodes) 8 9 idx := nodeIndex(count) 10 11 query.nodes = append(query.nodes, node{id: id}) 12 13 return idx 14}