(
target: Path,
*args: str,
git_dir: Path | None = None,
work_tree: Path | None = None,
)
| 29 | |
| 30 | |
| 31 | def git_bytes( |
| 32 | target: Path, |
| 33 | *args: str, |
| 34 | git_dir: Path | None = None, |
| 35 | work_tree: Path | None = None, |
| 36 | ) -> bytes | None: |
| 37 | completed = git_command(target, *args, text=False, git_dir=git_dir, work_tree=work_tree) |
| 38 | return completed.stdout if completed.returncode == 0 else None |
| 39 | |
| 40 | |
| 41 | def git_command( |
no test coverage detected