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

Method Writer

plumbing/memory.go:49–51  ·  view source on GitHub ↗

Writer returns a ObjectWriter used to write the object's content.

()

Source from the content-addressed store, hash-verified

47
48// Writer returns a ObjectWriter used to write the object's content.
49func (o *MemoryObject) Writer() (io.WriteCloser, error) {
50 return o, nil
51}
52
53func (o *MemoryObject) Write(p []byte) (n int, err error) {
54 o.cont = append(o.cont, p...)

Callers 4

decodeDeltaObjectAtMethod · 0.95
TestWriterMethod · 0.95
TestBlobHashMethod · 0.95
resolveObjectMethod · 0.95

Calls

no outgoing calls

Tested by 2

TestWriterMethod · 0.76
TestBlobHashMethod · 0.76