Skip to content

Allow deleting branches that have no worktree - #11

Merged
AgileIndustrialComplex merged 2 commits into
essafrom
claude/delete-branches-no-worktree-5dc72b
Jul 19, 2026
Merged

AgileIndustrialComplex merged 2 commits into
essafrom
claude/delete-branches-no-worktree-5dc72b

Conversation

@AgileIndustrialComplex

Copy link
Copy Markdown
Owner

Summary

  • The mark-then-delete flow previously only let you mark items with a dedicated worktree; plain local branches (no worktree) could never be bulk-deleted even though action.DeleteWorktrees already tolerated a missing path for detached-worktree items.
  • toggleMarked now allows marking any branch except the current worktree and locked worktrees; the [ ]/[x] marker column renders for all rows.
  • deleteWorktreesWith skips git worktree remove for items with no worktree and goes straight to git branch -d.
  • Confirm-delete screen, help text, and success message wording updated to reflect that deletion now applies to branches generally, not just worktrees.
  • Docs (README.md, SPEC.md) updated to match.

Test plan

  • go build ./...
  • go vet ./...
  • go test ./... (unit + integration, including new tests for marking/deleting a branch without a worktree)
  • gofmt -l . clean

🤖 Generated with Claude Code

AgileIndustrialComplex and others added 2 commits July 19, 2026 17:24
The mark-then-delete flow only let you mark items with a dedicated
worktree, so plain local branches could never be bulk-deleted even
though action.DeleteWorktrees already tolerated a missing path.
Deletion now skips `git worktree remove` for such items and goes
straight to `git branch -d`.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@AgileIndustrialComplex
AgileIndustrialComplex merged commit 7ee755f into essa Jul 19, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant