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

Method Write

utils/ioutil/common.go:203–210  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

201}
202
203func (r *writerOnError) Write(p []byte) (n int, err error) {
204 n, err = r.Writer.Write(p)
205 if err != nil && err != io.EOF {
206 r.notify(err)
207 }
208
209 return
210}

Callers 15

HashMethod · 0.45
calculateHashMethod · 0.45
WriteFileFunction · 0.45
TestRacyGitMethod · 0.45
TestZeroIndexModTimeMethod · 0.45
TestReadMethod · 0.45
TestReadUint32Method · 0.45
TestReadUint16Method · 0.45
TestReadHashMethod · 0.45
TestIsBinaryMethod · 0.45
TestWriteMethod · 0.45

Calls

no outgoing calls

Tested by 14

WriteFileFunction · 0.36
TestRacyGitMethod · 0.36
TestZeroIndexModTimeMethod · 0.36
TestReadMethod · 0.36
TestReadUint32Method · 0.36
TestReadUint16Method · 0.36
TestReadHashMethod · 0.36
TestIsBinaryMethod · 0.36
TestWriteMethod · 0.36
TestWriteUint32Method · 0.36
TestWriteUint16Method · 0.36
TestNewContextWriterMethod · 0.36