(projectPath: string)
| 263 | } |
| 264 | |
| 265 | export async function pruneWorktrees(projectPath: string): Promise<WorktreeResult> { |
| 266 | // Clean up stale lock before git operations on main repo |
| 267 | cleanStaleLock(projectPath); |
| 268 | |
| 269 | try { |
| 270 | using proc = execFileAsync("git", ["-C", projectPath, "worktree", "prune"]); |
| 271 | await proc.result; |
| 272 | return { success: true }; |
| 273 | } catch (error) { |
| 274 | const message = getErrorMessage(error); |
| 275 | return { success: false, error: message }; |
| 276 | } |
| 277 | } |
nothing calls this directly
no test coverage detected