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 13 lines 348 B view raw
1package commitquery 2 3import objectid "codeberg.org/lindenii/furgit/object/id" 4 5// resolveCommitish peels one commit-ish object ID and resolves the commit. 6func (query *query) resolveCommitish(id objectid.ObjectID) (nodeIndex, error) { 7 id, err := query.fetcher.PeelToCommitID(id) 8 if err != nil { 9 return 0, err 10 } 11 12 return query.resolveOID(id) 13}