Skip to content

Take the branch name from git worktree list when cleaning up - #50

Merged
DetweilerRyan merged 1 commit into
mainfrom
docs/worktree-branch-name
Nov 21, 2026
Merged

DetweilerRyan merged 1 commit into
mainfrom
docs/worktree-branch-name

Conversation

@DetweilerRyan

Copy link
Copy Markdown
Owner

What to look at

  • cleaning-up-merged-work.md step 4 now says to take the branch's name from git worktree list, not from ExitWorktree's message. That message can give the name EnterWorktree generated, from before the rename that starting work asks for.
  • git worktree list is now the first command in step 4's block, since every command after it uses the branch name.

Decisions made

For the owner to confirm

Nothing.

Changed test expectations

Nothing.

Verification

  • Ran all five definition-of-done checks in the worktree: lint, format, types, tests (83 passed), build. All exited 0.
  • Reviewed the branch diff against main before pushing. It found that the block used <branch> before git worktree list gave it; fixed by moving that line first.
  • The behaviour is from Add workflow procedures and use a worktree per piece of work #47's cleanup, where ExitWorktree named worktree-worktree-procedure and git worktree list showed docs/worktrees. This branch was renamed the same way, so its own cleanup will show it again.

Closes #48

🤖 Generated with Claude Code

ExitWorktree can report the name a branch had before it was renamed, which starting work tells sessions to do. List the worktree first in step 4 and use the name git gives.

Closes #48

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
split Building Building Preview Nov 21, 2026 8:41pm UTC

@DetweilerRyan
DetweilerRyan marked this pull request as ready for review November 21, 2026 20:43
@DetweilerRyan
DetweilerRyan merged commit 62c3691 into main Nov 21, 2026
3 checks passed
@DetweilerRyan
DetweilerRyan deleted the docs/worktree-branch-name branch November 21, 2026 20:53
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.

ExitWorktree reports a worktree's branch by its name before a rename

1 participant