Tags: timvw/wt
Tags
feat: add cleanup command to remove worktrees for merged branches (#36) * feat: add cleanup command to remove worktrees for merged branches Add a new 'wt cleanup' command that identifies worktrees associated with branches that have been merged into main/master and removes them. Features: - --dry-run: Preview what would be removed without making changes - --force: Remove all merged worktrees without interactive confirmation - Default: Interactive confirmation for each worktree - Automatically runs 'git worktree prune' after cleanup This provides a built-in alternative to manual cleanup scripts, making it easier to keep worktree directories tidy after merging feature branches. * test: add YAML E2E tests for cleanup command Add declarative E2E test scenarios for the cleanup command: - cleanup_dry_run_shows_merged: Verify dry-run shows merged branch worktrees - cleanup_dry_run_preserves_worktrees: Verify dry-run doesn't remove anything - cleanup_force_removes_merged: Verify --force removes merged worktrees - cleanup_no_merged_branches: Verify graceful handling when nothing to clean - cleanup_cleans_directory: Verify filesystem cleanup Also update AGENTS.md with documentation about the YAML E2E test framework to help future AI agents understand the testing approach.
refactor: rename cd marker to user-friendly format (#33) * refactor: rename cd marker to user-friendly format Change output from `TREE_ME_CD:/path` to `wt navigating to: /path` for better readability when shell integration captures the output. * fix: correct test to check for 'navigating' not 'navigation'
ci: add PTY interactive tests to macOS e2e jobs The new interactive tests (TestInteractive* and TestNonInteractive*) were not running on macOS - only the old e2e tests were included. Now running on macOS for both shells: - bash: TestInteractiveCheckoutWithoutArgsBash + TestNonInteractiveCheckoutWithArgsBash - zsh: TestInteractiveCheckoutWithoutArgs + TestNonInteractiveCheckoutWithArgs This ensures full PTY test coverage on macOS runners. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
PreviousNext