(repo: Path)
| 204 | |
| 205 | |
| 206 | def _empty_tree(repo: Path) -> str: |
| 207 | # Avoid hardcoding; derive the empty tree hash deterministically. |
| 208 | empty = _run_git(["hash-object", "-t", "tree", os.devnull], repo) |
| 209 | return _validate_sha("empty-tree", empty) |
| 210 | |
| 211 | |
| 212 | def determine_diff_range(repo: Path, override_base: str | None, override_head: str | None) -> tuple[str, str, DiffMode]: |
no test coverage detected