(projectPath: string)
| 20 | } |
| 21 | |
| 22 | async function pruneWorktreesBestEffort(projectPath: string): Promise<void> { |
| 23 | try { |
| 24 | using pruneProc = execFileAsync("git", ["-C", projectPath, "worktree", "prune"], { |
| 25 | env: GIT_NO_HOOKS_ENV, |
| 26 | }); |
| 27 | await pruneProc.result; |
| 28 | } catch { |
| 29 | // Ignore prune errors during best-effort cleanup. |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | export async function removeManagedGitWorktree( |
| 34 | projectPath: string, |
no test coverage detected