()
| 360 | } |
| 361 | |
| 362 | export const hasUnpushedCommits = async (): Promise<boolean> => { |
| 363 | const { stdout, code } = await execFileNoThrow( |
| 364 | gitExe(), |
| 365 | ['rev-list', '--count', '@{u}..HEAD'], |
| 366 | { preserveOutputOnError: false }, |
| 367 | ) |
| 368 | return code === 0 && parseInt(stdout.trim(), 10) > 0 |
| 369 | } |
| 370 | |
| 371 | export const getIsClean = async (options?: { |
| 372 | ignoreUntracked?: boolean |
nothing calls this directly
no test coverage detected