chore(commands): fix ExitWorktree cleanup + ignore worktrees dir

Pass discard_changes: true so cleanup succeeds after branch is pushed.
Add .claude/worktrees/ to .gitignore.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-05 11:15:06 +02:00
parent 4ec6295d1d
commit 25c05bc2d8
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -83,5 +83,6 @@ Files changed:
## Step 8 — Cleanup
Call `ExitWorktree` to delete the worktree.
Call `ExitWorktree` with `discard_changes: true` to delete the worktree.
(Branch was pushed in step 6 — commits are safe on remote; `discard_changes: true` bypasses the local-ahead guard.)
Report: branch pushed, ticket commented, worktree deleted, done.