MCPcopy Create free account
hub / github.com/go-git/go-git / GetIndexByHash

Method GetIndexByHash

plumbing/format/commitgraph/commitgraph.go:35–35  ·  view source on GitHub ↗

GetIndexByHash gets the index in the commit graph from commit hash, if available

(h plumbing.Hash)

Source from the content-addressed store, hash-verified

33type Index interface {
34 // GetIndexByHash gets the index in the commit graph from commit hash, if available
35 GetIndexByHash(h plumbing.Hash) (int, error)
36 // GetNodeByIndex gets the commit node from the commit graph using index
37 // obtained from child node, if available
38 GetCommitDataByIndex(i int) (*CommitData, error)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected