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

Method Files

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

Source from the content-addressed store, hash-verified

180}
181
182func (tf *textFilePatch) Files() (from fdiff.File, to fdiff.File) {
183 f := &changeEntryWrapper{tf.from}
184 t := &changeEntryWrapper{tf.to}
185
186 if !f.Empty() {
187 from = f
188 }
189
190 if !t.Empty() {
191 to = t
192 }
193
194 return
195}
196
197func (tf *textFilePatch) IsBinary() bool {
198 return len(tf.chunks) == 0

Callers

nothing calls this directly

Calls 1

EmptyMethod · 0.95

Tested by

no test coverage detected