feat(worktree): delete worktrees from the Worktrees view #174
No reviewers
Labels
No labels
backend
bug
chore
duplication
effort:complex
effort:medium
effort:trivial
enhancement
frontend
fullstack
priority:high
ready-for-agent
refactor
security
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dries/ocman!174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/worktree-delete"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
worktree.Removeshells out togit worktree remove [--force]; git enforces the guards (refuses the main checkout and a dirty tree), classified intoErrMainWorktree/ErrWorktreeDirty.hostsvc.Hostseam (local + remote gRPC), so it works for remote hosts too. NewRemoveWorktreeRPC.POST /api/worktree/remove(localhost-only): 404 non-repo, 409 main/dirty, 502 otherwise.Out of scope (deliberate)
Testing
make lint+make testgreen (1322 frontend tests, full Go suite).Coverage ratchet: ✅ pass
Tolerance: -0.1%. Baseline stored on
gh-pages.