(repo: Path, base: str, head: str)
| 266 | |
| 267 | |
| 268 | def changed_files(repo: Path, base: str, head: str) -> list[str]: |
| 269 | if not base or not head: |
| 270 | return [] |
| 271 | out = _run_git(["diff", "--name-only", "--diff-filter=ACMRTD", base, head], repo) |
| 272 | files = [_normalize_relpath(line) for line in out.splitlines() if line.strip()] |
| 273 | return sorted(set(files)) |
| 274 | |
| 275 | |
| 276 | def _is_safe_relpath(p: str) -> bool: |
no test coverage detected