(path: Path)
| 131 | |
| 132 | |
| 133 | def _line_count(path: Path) -> int: |
| 134 | if not path.is_file(): |
| 135 | return 0 |
| 136 | return len(path.read_text(encoding="utf-8", errors="replace").splitlines()) |
| 137 | |
| 138 | |
| 139 | def write_diff(prev: Path, curr: Path, diff_path: Path) -> None: |