Get all deleted lines with their line numbers (0-based) in the original file.
(self)
| 125 | |
| 126 | @property |
| 127 | def deleted_lines(self) -> list[tuple[int, str]]: |
| 128 | """Get all deleted lines with their line numbers (0-based) in the original file.""" |
| 129 | result = [] |
| 130 | for change in self._line_changes: |
| 131 | if change.operation in ("delete", "replace"): |
| 132 | for i, line in enumerate(change.original_lines): |
| 133 | result.append((change.original_start + i, line)) |
| 134 | return result |
| 135 | |
| 136 | @property |
| 137 | def modified_line_numbers(self) -> list[int]: |