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

Method String

plumbing/object/patch.go:138–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136}
137
138func (p *Patch) String() string {
139 buf := bytes.NewBuffer(nil)
140 err := p.Encode(buf)
141 if err != nil {
142 return fmt.Sprintf("malformed patch: %s", err.Error())
143 }
144
145 return buf.String()
146}
147
148// changeEntryWrapper is an implementation of fdiff.File interface
149type changeEntryWrapper struct {

Callers

nothing calls this directly

Calls 3

EncodeMethod · 0.95
StringMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected