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