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

Method NewEncodedObject

storage/memory/storage.go:93–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93func (o *ObjectStorage) NewEncodedObject() plumbing.EncodedObject {
94 return &plumbing.MemoryObject{}
95}
96
97func (o *ObjectStorage) SetEncodedObject(obj plumbing.EncodedObject) (plumbing.Hash, error) {
98 h := obj.Hash()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected