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

Function fileContent

plumbing/object/patch.go:99–112  ·  view source on GitHub ↗
(f *File)

Source from the content-addressed store, hash-verified

97}
98
99func fileContent(f *File) (content string, isBinary bool, err error) {
100 if f == nil {
101 return
102 }
103
104 isBinary, err = f.IsBinary()
105 if err != nil || isBinary {
106 return
107 }
108
109 content, err = f.Contents()
110
111 return
112}
113
114// Patch is an implementation of fdiff.Patch interface
115type Patch struct {

Callers 1

filePatchWithContextFunction · 0.85

Calls 2

ContentsMethod · 0.80
IsBinaryMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…