(*args: str, repo: str = '.')
| 173 | |
| 174 | |
| 175 | def has_diff(*args: str, repo: str = '.') -> bool: |
| 176 | cmd = ('git', 'diff', '--quiet', '--no-ext-diff', *args) |
| 177 | return cmd_output_b(*cmd, cwd=repo, check=False)[0] == 1 |
| 178 | |
| 179 | |
| 180 | def has_core_hookpaths_set() -> bool: |
nothing calls this directly
no test coverage detected