()
| 347 | } |
| 348 | |
| 349 | export const hasUnpushedCommits = async (): Promise<boolean> => { |
| 350 | const { stdout, code } = await execFileNoThrow( |
| 351 | gitExe(), |
| 352 | ['rev-list', '--count', '@{u}..HEAD'], |
| 353 | { preserveOutputOnError: false }, |
| 354 | ) |
| 355 | return code === 0 && parseInt(stdout.trim(), 10) > 0 |
| 356 | } |
| 357 | |
| 358 | export const getIsClean = async (options?: { |
| 359 | ignoreUntracked?: boolean |
nothing calls this directly
no test coverage detected