(message: string)
| 6 | const MISSING_WORKTREE_ERROR_PATTERNS = ["not a working tree", "does not exist", "no such file"]; |
| 7 | |
| 8 | function isMissingWorktreeError(message: string): boolean { |
| 9 | const normalizedError = message.toLowerCase(); |
| 10 | return MISSING_WORKTREE_ERROR_PATTERNS.some((pattern) => normalizedError.includes(pattern)); |
| 11 | } |
| 12 | |
| 13 | async function worktreePathExists(worktreePath: string): Promise<boolean> { |
| 14 | try { |
no outgoing calls
no test coverage detected