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