blob: 1b91c8bd930dad3c31853c40881b736aafd62e97 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package commitquery
import (
"codeberg.org/lindenii/furgit/internal/peel"
objectid "codeberg.org/lindenii/furgit/object/id"
)
// resolveCommitish peels one commit-ish object ID and resolves the commit.
func (query *query) resolveCommitish(id objectid.ObjectID) (nodeIndex, error) {
commitID, err := peel.ToCommit(query.store, id)
if err != nil {
return 0, err
}
return query.resolveOID(commitID)
}
|