()
| 180 | } |
| 181 | |
| 182 | func (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 | |
| 197 | func (tf *textFilePatch) IsBinary() bool { |
| 198 | return len(tf.chunks) == 0 |