(options?: string[])
| 228 | } |
| 229 | |
| 230 | async hasDiff(options?: string[]): Promise<boolean> { |
| 231 | const args = ['diff', '--quiet'] |
| 232 | if (options) { |
| 233 | args.push(...options) |
| 234 | } |
| 235 | const output = await this.exec(args, {allowAllExitCodes: true}) |
| 236 | return output.exitCode === 1 |
| 237 | } |
| 238 | |
| 239 | async isDirty(untracked: boolean, pathspec?: string[]): Promise<boolean> { |
| 240 | const pathspecArgs = pathspec ? ['--', ...pathspec] : [] |
no test coverage detected