()
| 80 | } |
| 81 | |
| 82 | func (self *Patch) ContainsChanges() bool { |
| 83 | return lo.SomeBy(self.hunks, func(hunk *Hunk) bool { |
| 84 | return hunk.containsChanges() |
| 85 | }) |
| 86 | } |
| 87 | |
| 88 | // Takes a line index in the patch and returns the line number in the new file. |
| 89 | // If the line is a header line, returns 1. |
no test coverage detected