Skip to content

docs: stop a lane with links before git worktree remove - #406

Merged
7schmiede merged 1 commit into
mainfrom
docs/worktree-remove-with-links
Nov 2, 2026
Merged

7schmiede merged 1 commit into
mainfrom
docs/worktree-remove-with-links

Conversation

@7schmiede

Copy link
Copy Markdown
Member

The devstack skill (skills/devstack/SKILL.md) and docs/plan.md said git worktree remove works while a lane runs. That contradicts ADR-0044 and docs/stack-file.md: with prepare.link, Windows Git follows the junction on removal.

Measured again on Windows with Git 2.43.0: a worktree with a junction to a directory holding a file, git worktree remove exits 0, and the file in the junction's target is gone.

Changes:

  • Skill: removing a worktree still stops its lane and takes its state along; when the lane links directories (linked in devstack lane list), devstack lane stop comes first. Without links the remove works while the lane runs.
  • Plan: the same qualification, with a reference to ADR-0044.
  • CHANGELOG: a Fixed entry under Unreleased.

Docs only, no behaviour change; it states what ADR-0044 decided, so no review card.

🤖 Generated with Claude Code

The devstack skill and the plan said `git worktree remove` works while a
lane runs. With `prepare.link` it does not on Windows: Git 2.43 follows the
junction and empties the lane's copy (measured again), a newer Git leaves
the worktree behind with the junction in it (ADR-0044). Both now say what
docs/stack-file.md already said.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit 9f78721 into main Nov 2, 2026
@7schmiede
7schmiede deleted the docs/worktree-remove-with-links branch November 2, 2026 10:39
@7schmiede 7schmiede mentioned this pull request Nov 2, 2026
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