Returns a new patch with the specified transformation applied (e.g. only selecting a subset of changes). Leaves the original patch unchanged.
(opts TransformOpts)
| 19 | // only selecting a subset of changes). |
| 20 | // Leaves the original patch unchanged. |
| 21 | func (self *Patch) Transform(opts TransformOpts) *Patch { |
| 22 | return transform(self, opts) |
| 23 | } |
| 24 | |
| 25 | // Returns the patch as a plain string |
| 26 | func (self *Patch) FormatPlain() string { |