(path: str)
| 153 | |
| 154 | # TODO: do we need to add the flags here too? |
| 155 | def get_head(path: str) -> str: |
| 156 | result = subprocess.run( |
| 157 | "git symbolic-ref -q --short HEAD || git describe --tags --exact-match", |
| 158 | shell=True, |
| 159 | stdout=subprocess.PIPE, |
| 160 | stderr=subprocess.DEVNULL, |
| 161 | universal_newlines=True, |
| 162 | cwd=path, |
| 163 | ) |
| 164 | return result.stdout.strip() |
| 165 | |
| 166 | |
| 167 | def run_quiet_diff(flags: List[str], args: List[str], path) -> int: |
no outgoing calls
no test coverage detected