(path: Path, *, staged: bool)
| 384 | |
| 385 | |
| 386 | def read_path(path: Path, *, staged: bool) -> str: |
| 387 | if staged: |
| 388 | return run_git(["show", f":{path.as_posix()}"]) |
| 389 | return path.read_text(encoding="utf-8") |
| 390 | |
| 391 | |
| 392 | def collect_paths(args: argparse.Namespace) -> tuple[list[Path], bool]: |
no test coverage detected