(*args: str)
| 108 | |
| 109 | |
| 110 | def run_git(*args: str) -> str: |
| 111 | completed = subprocess.run( |
| 112 | ["git", *args], |
| 113 | check=True, |
| 114 | text=True, |
| 115 | capture_output=True, |
| 116 | ) |
| 117 | return completed.stdout.strip() |
| 118 | |
| 119 | |
| 120 | def normalize_whitespace(text: str) -> str: |