MCPcopy Index your code
hub / github.com/go-git/go-git / GetIndexByHash

Method GetIndexByHash

plumbing/format/commitgraph/v2/commitgraph.go:43–43  ·  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

41type Index interface {
42 // GetIndexByHash gets the index in the commit graph from commit hash, if available
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

Callers 7

GetMethod · 0.65
encodeCommitDataMethod · 0.65
testDecodeHelperFunction · 0.65
GetIndexByHashMethod · 0.65
encodeCommitDataMethod · 0.65
testDecodeHelperFunction · 0.65
TestDecodeMultiChainMethod · 0.65

Calls

no outgoing calls

Tested by 3

testDecodeHelperFunction · 0.52
testDecodeHelperFunction · 0.52
TestDecodeMultiChainMethod · 0.52