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

Method GetHashByIndex

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

GetHashByIndex gets the hash given an index in the commit graph

(i uint32)

Source from the content-addressed store, hash-verified

43 GetIndexByHash(h plumbing.Hash) (uint32, error)
44 // GetHashByIndex gets the hash given an index in the commit graph
45 GetHashByIndex(i uint32) (plumbing.Hash, error)
46 // GetNodeByIndex gets the commit node from the commit graph using index
47 // obtained from child node, if available
48 GetCommitDataByIndex(i uint32) (*CommitData, error)

Callers 4

GetHashByIndexMethod · 0.65
getHashesFromIndexesMethod · 0.65
HashesMethod · 0.65
TestDecodeMultiChainMethod · 0.65

Calls

no outgoing calls

Tested by 1

TestDecodeMultiChainMethod · 0.52