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

Method NewEncodedObject

internal/gitproto/commitparents.go:181–183  ·  view source on GitHub ↗

--- Unused interface methods ------------------------------------------------ EncodedObjectStorer requires more than the two methods the parser actually exercises in low-memory mode. We stub the rest with explicit errors so any future caller that depends on them fails loudly rather than getting a m

()

Source from the content-addressed store, hash-verified

179// than getting a misleading empty result.
180
181func (s *commitParentsStorer) NewEncodedObject() plumbing.EncodedObject {
182 return plumbing.NewMemoryObject(s.hasher)
183}
184
185func (s *commitParentsStorer) SetEncodedObject(plumbing.EncodedObject) (plumbing.Hash, error) {
186 return plumbing.ZeroHash, errors.New("commitParentsStorer: SetEncodedObject not supported")

Callers 10

seedCommitFunction · 0.80
writeLinearCommitChainFunction · 0.80
buildSyntheticPackFunction · 0.80
copyRefsAndObjectsFunction · 0.80
writeBlobFunction · 0.80
storeMethod · 0.80
writeBlobFunction · 0.80
writeObjectFunction · 0.80

Calls

no outgoing calls

Tested by 9

seedCommitFunction · 0.64
writeLinearCommitChainFunction · 0.64
buildSyntheticPackFunction · 0.64
copyRefsAndObjectsFunction · 0.64
writeBlobFunction · 0.64
writeBlobFunction · 0.64
writeObjectFunction · 0.64