(options?: {
ignoreUntracked?: boolean
})
| 356 | } |
| 357 | |
| 358 | export const getIsClean = async (options?: { |
| 359 | ignoreUntracked?: boolean |
| 360 | }): Promise<boolean> => { |
| 361 | const args = ['--no-optional-locks', 'status', '--porcelain'] |
| 362 | if (options?.ignoreUntracked) { |
| 363 | args.push('-uno') |
| 364 | } |
| 365 | const { stdout } = await execFileNoThrow(gitExe(), args, { |
| 366 | preserveOutputOnError: false, |
| 367 | }) |
| 368 | return stdout.trim().length === 0 |
| 369 | } |
| 370 | |
| 371 | export const getChangedFiles = async (): Promise<string[]> => { |
| 372 | const { stdout } = await execFileNoThrow( |
no test coverage detected