Skip to content

docs(switch): say that wt list flags a --path worktree off its template path - #4328

Merged
max-sixty merged 1 commit into
mainfrom
nightly/clean-36826300283
Oct 1, 2026
Merged

max-sixty merged 1 commit into
mainfrom
nightly/clean-36826300283

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

The new --path help section (from #4317) says that "only wt step relocate" treats a worktree created with --path differently. That isn't true: wt list marks the row ⚑ (worktree.branch_mismatch, "Worktree isn't at the path its branch implies"), because is_worktree_at_expected_path compares every branch worktree against the worktree-path template. #4317's own PR description says as much ("wt list still marks these rows ⚑"), but the help text didn't carry it over.

This rewords the sentence to name both: commands still reach the worktree by branch or path, wt list flags it ⚑, and wt step relocate offers to move it back. The change is in src/cli/mod.rs, plus the regenerated docs/skill mirrors and the help_switch_long snapshot.

Verified against a local build: after wt switch --create feature/x --path ../custom, wt list shows + feature/x ⚑_ … ../custom, while a template-path sibling shows no ⚑. This changes docs only, so there's no regression test. test_docs_are_in_sync and the help snapshot tests pass.

…te path

The --path section said only wt step relocate treats an off-template
worktree differently, but wt list also marks the row with ⚑.
@worktrunk-bot worktrunk-bot added the nightly-cleanup Issues found by nightly code quality sweep label Oct 1, 2026
@max-sixty
max-sixty merged commit 2f85940 into main Oct 1, 2026
37 of 47 checks passed
@max-sixty
max-sixty deleted the nightly/clean-36826300283 branch October 1, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nightly-cleanup Issues found by nightly code quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants