(reverse bool, turnAddedFilesIntoDiffAgainstEmptyFile bool)
| 48 | } |
| 49 | |
| 50 | func (self *PatchCommands) ApplyCustomPatch(reverse bool, turnAddedFilesIntoDiffAgainstEmptyFile bool) error { |
| 51 | patch := self.PatchBuilder.PatchToApply(reverse, turnAddedFilesIntoDiffAgainstEmptyFile) |
| 52 | |
| 53 | return self.ApplyPatch(patch, ApplyPatchOpts{ |
| 54 | Index: true, |
| 55 | ThreeWay: true, |
| 56 | Reverse: reverse, |
| 57 | }) |
| 58 | } |
| 59 | |
| 60 | func (self *PatchCommands) ApplyPatch(patch string, opts ApplyPatchOpts) error { |
| 61 | filepath, err := self.SaveTemporaryPatch(patch) |
no test coverage detected