Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

feat: accept folder paths in wt-rm and wt-destroy recipes - #24

Merged
davidpoblador merged 1 commit into
mainfrom
cc
Feb 8, 2026
Merged

feat: accept folder paths in wt-rm and wt-destroy recipes#24
davidpoblador merged 1 commit into
mainfrom
cc

Conversation

@davidpoblador

Copy link
Copy Markdown
Member

Summary

  • wt-rm and wt-destroy now accept a folder path (e.g., ./my-feature/) in addition to a branch name, using basename to resolve the branch
  • Enables tab-completion of directories when removing worktrees
  • Main worktree guard still works regardless of path format

Test plan

  • Run just wt-add test-branch then just wt-rm ./test-branch/ and verify it removes correctly
  • Run just wt-rm main/ and verify it's rejected
  • Run just wt-destroy main and verify it's rejected

🤖 Generated with Claude Code

Use basename to resolve folder paths (e.g., ./my-feature/) to branch
names, so users can tab-complete directories when removing worktrees.
The main worktree guard works regardless of path format.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@davidpoblador
davidpoblador merged commit 635fd99 into main Feb 8, 2026
1 check passed
@davidpoblador
davidpoblador deleted the cc branch February 8, 2026 10:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant