Skip to content

docs: correct --delete-remote wording (origin branch, not tracking ref)#25

Merged
sahil-noon merged 1 commit into
mainfrom
docs-delete-remote-wording
Jun 25, 2026
Merged

docs: correct --delete-remote wording (origin branch, not tracking ref)#25
sahil-noon merged 1 commit into
mainfrom
docs-delete-remote-wording

Conversation

@sahil-noon

Copy link
Copy Markdown
Collaborator

What

Both docs/specs/cli-surface.md and docs/site/workflows.md described wt delete --delete-remote as deleting the remote-tracking branch. That's inaccurate: DeleteRemoteBranch runs git push origin --delete <branch> (src/internal/worktree/git.go:99-100), which deletes the branch on origin — not the local remote-tracking ref.

This aligns both docs with the --delete-remote help text in delete.go that was corrected in #24:

Delete the branch on the origin remote (via git push origin --delete) when the local branch is deleted.

Why

Follow-up to #24. Copilot's review there corrected the in-code help string but flagged that the same wrong phrasing remained in the spec and the site doc (out of scope for that PR). This closes that gap so the spec (source of truth) and site doc match the implementation.

Scope

Docs-only — two lines, no code or behavior change. No tests affected.

…cking ref)

wt delete --delete-remote runs `git push origin --delete <branch>`, which
deletes the branch on origin — not the local remote-tracking ref. Both
docs/specs/cli-surface.md and docs/site/workflows.md described it as
deleting the "remote-tracking branch," which is inaccurate. Align both
with the delete.go --delete-remote help text corrected in #24.

Docs-only follow-up to #24; no code or behavior change.
@sahil-noon sahil-noon merged commit 2243878 into main Jun 25, 2026
2 checks passed
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.

2 participants