(*patterns: str)
| 23 | |
| 24 | |
| 25 | def git_ls_files(*patterns: str) -> list[Path]: |
| 26 | command = ["git", "ls-files", "-z"] |
| 27 | if patterns: |
| 28 | command.extend(["--", *patterns]) |
| 29 | |
| 30 | raw_output = subprocess.check_output(command, cwd=REPO_ROOT) |
| 31 | return [Path(item.decode("utf-8")) for item in raw_output.split(b"\0") if item] |
| 32 | |
| 33 | |
| 34 | def read_text(path: str | Path) -> str: |
no outgoing calls
no test coverage detected