Return the return code of git diff `args` in quiet mode
(flags: List[str], args: List[str], path)
| 165 | |
| 166 | |
| 167 | def run_quiet_diff(flags: List[str], args: List[str], path) -> int: |
| 168 | """ |
| 169 | Return the return code of git diff `args` in quiet mode |
| 170 | """ |
| 171 | result = subprocess.run( |
| 172 | ["git"] + flags + ["diff", "--quiet"] + args, |
| 173 | stderr=subprocess.DEVNULL, |
| 174 | cwd=path, |
| 175 | ) |
| 176 | return result.returncode |
| 177 | |
| 178 | |
| 179 | def get_common_commit(path) -> str: |