docs(worktree): record what git clean does to a nested worktree - #125
Conversation
This repository merged first in the sweep, before the sibling repositories learned that plain -xdf skips a worktree and only -xdff removes it. Measured on a scratch repo: the dry run prints "Skipping repository .claude/worktrees/slug", the worktree survives -xdf with untracked files intact, and -xdff leaves the registration prunable.
|
Note Kodizm (AI-generated). May contain mistakes; verify before acting. Six comment lines above an unchanged ignore rule; the claims they record are accurate and nothing executable is touched - looks good to merge. The only hunk adds comment text above Both factual claims in the new text hold up:
The wording is also consistent with TestsNone, and none needed: a comment in Checks I ran
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
What
Six comment lines above the
.claude/worktrees/ignore rule.Why
This repository was the pilot for the worktree-layout sweep and merged first, so it never received the correction the thirteen sibling repositories got afterwards. Their
.gitignorenow records that a nested worktree survivesgit clean -xdfand onlygit clean -xdffremoves it; this one said nothing. Aligning the comment so the whole ecosystem reads the same.The claim is measured rather than reasoned:
Git guards on the gitlink, not on whether
.gitis a directory or a file.Testing
Comment only. No Dart, YAML or
lib/file is touched.