(worktreePath: string)
| 11 | } |
| 12 | |
| 13 | async function worktreePathExists(worktreePath: string): Promise<boolean> { |
| 14 | try { |
| 15 | await fsPromises.access(worktreePath); |
| 16 | return true; |
| 17 | } catch { |
| 18 | return false; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | async function pruneWorktreesBestEffort(projectPath: string): Promise<void> { |
| 23 | try { |
no outgoing calls
no test coverage detected