MCPcopy
hub / github.com/go-git/go-git / Get

Method Get

plumbing/cache/common.go:23–23  ·  view source on GitHub ↗

Get gets an object from the cache given its hash. The second return value is true if the object was returned, and false otherwise.

(k plumbing.Hash)

Source from the content-addressed store, hash-verified

21 // Get gets an object from the cache given its hash. The second return value
22 // is true if the object was returned, and false otherwise.
23 Get(k plumbing.Hash) (plumbing.EncodedObject, bool)
24 // Clear clears every object from the cache.
25 Clear()
26}

Callers 15

GetBufioReaderFunction · 0.65
GetZlibReaderFunction · 0.65
GetZlibWriterFunction · 0.65
GetByteSliceFunction · 0.65
GetBytesBufferFunction · 0.65
mainFunction · 0.65
getFromUnpackedMethod · 0.65
decodeObjectAtMethod · 0.65
TestPutSameBufferMethod · 0.65

Calls

no outgoing calls

Tested by 15

TestPutSameBufferMethod · 0.52
TestPutBigBufferMethod · 0.52
TestPutCacheOverflowMethod · 0.52
TestClearMethod · 0.52
TestConcurrentAccessMethod · 0.52
TestPutSameObjectMethod · 0.52
TestPutBigObjectMethod · 0.52
TestPutCacheOverflowMethod · 0.52