(f *File)
| 97 | } |
| 98 | |
| 99 | func 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 |
| 115 | type Patch struct { |
no test coverage detected
searching dependent graphs…