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

Method SetEncodedObject

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

SetEncodedObject saves an object into the storage, the object should be create with the NewEncodedObject, method, and file if the type is not supported.

(plumbing.EncodedObject)

Source from the content-addressed store, hash-verified

23 // be create with the NewEncodedObject, method, and file if the type is
24 // not supported.
25 SetEncodedObject(plumbing.EncodedObject) (plumbing.Hash, error)
26 // EncodedObject gets an object by hash with the given
27 // plumbing.ObjectType. Implementors should return
28 // (nil, plumbing.ErrObjectNotFound) if an object doesn't exist with

Callers

nothing calls this directly

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected