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

Method SetEncodedObject

storage/transactional/object.go:21–23  ·  view source on GitHub ↗

SetEncodedObject honors the storer.EncodedObjectStorer interface.

(obj plumbing.EncodedObject)

Source from the content-addressed store, hash-verified

19
20// SetEncodedObject honors the storer.EncodedObjectStorer interface.
21func (o *ObjectStorage) SetEncodedObject(obj plumbing.EncodedObject) (plumbing.Hash, error) {
22 return o.temporal.SetEncodedObject(obj)
23}
24
25// HasEncodedObject honors the storer.EncodedObjectStorer interface.
26func (o *ObjectStorage) HasEncodedObject(h plumbing.Hash) error {

Callers 4

TestHasEncodedObjectMethod · 0.95
TestCommitMethod · 0.95

Calls 1

SetEncodedObjectMethod · 0.65

Tested by 4

TestHasEncodedObjectMethod · 0.76
TestCommitMethod · 0.76