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

Method NewEncodedObject

plumbing/storer/object.go:21–21  ·  view source on GitHub ↗

NewEncodedObject returns a new plumbing.EncodedObject, the real type of the object can be a custom implementation or the default one, plumbing.MemoryObject.

()

Source from the content-addressed store, hash-verified

19 // of the object can be a custom implementation or the default one,
20 // plumbing.MemoryObject.
21 NewEncodedObject() plumbing.EncodedObject
22 // SetEncodedObject saves an object into the storage, the object should
23 // be create with the NewEncodedObject, method, and file if the type is
24 // not supported.

Callers 13

createTagObjectMethod · 0.65
writeEmptyTreeFunction · 0.65
writeCommitToRefFunction · 0.65
buildCommitObjectMethod · 0.65
copyFileToStorageMethod · 0.65
TestCommitMethod · 0.65
TestHasEncodedObjectMethod · 0.65
TestCommitMethod · 0.65

Implementers 2

ObjectStoragestorage/memory/storage.go
MockObjectStorageplumbing/storer/object_test.go

Calls

no outgoing calls

Tested by 8

writeEmptyTreeFunction · 0.52
writeCommitToRefFunction · 0.52
TestCommitMethod · 0.52
TestHasEncodedObjectMethod · 0.52
TestCommitMethod · 0.52
TestMaxObjectSizeMethod · 0.52