(
repo_root: pathlib.Path,
merge_base_sha: str,
)
| 68 | |
| 69 | |
| 70 | def unified_diff( |
| 71 | repo_root: pathlib.Path, |
| 72 | merge_base_sha: str, |
| 73 | ) -> str: |
| 74 | diff_result = subprocess.run( |
| 75 | ["git", "diff", f"{merge_base_sha}...HEAD"], |
| 76 | cwd=repo_root, |
| 77 | capture_output=True, |
| 78 | text=True, |
| 79 | check=True, |
| 80 | ) |
| 81 | return diff_result.stdout |