MCPcopy Index your code
hub / github.com/go-git/go-git / Encode

Method Encode

plumbing/object/patch.go:128–132  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

126}
127
128func (p *Patch) Encode(w io.Writer) error {
129 ue := fdiff.NewUnifiedEncoder(w, fdiff.DefaultContextLines)
130
131 return ue.Encode(p)
132}
133
134func (p *Patch) Stats() FileStats {
135 return getFileStatsFromFilePatches(p.FilePatches())

Callers 1

StringMethod · 0.95

Calls 1

EncodeMethod · 0.95

Tested by

no test coverage detected