From 8d6e1be4abbb0acf6268f6f82d22edaac52dc48c Mon Sep 17 00:00:00 2001 From: Sahil Ahuja Date: Thu, 25 Jun 2026 11:53:49 +0530 Subject: [PATCH] docs: correct --delete-remote wording (deletes origin branch, not tracking ref) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wt delete --delete-remote runs `git push origin --delete `, 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. --- docs/site/workflows.md | 2 +- docs/specs/cli-surface.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/site/workflows.md b/docs/site/workflows.md index 93c43bc..4edf830 100644 --- a/docs/site/workflows.md +++ b/docs/site/workflows.md @@ -70,7 +70,7 @@ selection menu. | Flag | Default | Description | |------|---------|-------------| | `--delete-branch ` | `auto` | Delete the associated local branch. `auto` deletes only when the branch name matches the worktree name. | -| `--delete-remote ` | `true` | Delete the remote-tracking branch when the local branch is deleted. | +| `--delete-remote ` | `true` | Delete the branch on the origin remote (via `git push origin --delete`) when the local branch is deleted. | | `--delete-all` | `false` | Delete every worktree (skips the selection logic). | | `-s`, `--stash` | `false` | Stash uncommitted changes in the worktree before deleting. | | `--stale[=Nd]` | `7d` when bare | Select idle worktrees (filesystem mtime older than the threshold) for deletion. Bare `--stale` uses the 7-day default; `--stale=30d` overrides. The `=` is required. | diff --git a/docs/specs/cli-surface.md b/docs/specs/cli-surface.md index 3dbcbe2..7a34632 100644 --- a/docs/specs/cli-surface.md +++ b/docs/specs/cli-surface.md @@ -153,7 +153,7 @@ Delete one or more worktrees with optional branch cleanup. |------|---------|-------------| | `--worktree-name ` | (none) | **Deprecated**: use positional arguments instead. | | `--delete-branch ` | `auto` | Delete the associated local branch. `auto` deletes only when the branch name matches the worktree name. | -| `--delete-remote ` | `true` | Delete the remote-tracking branch when the local branch is deleted. | +| `--delete-remote ` | `true` | Delete the branch on the origin remote (via `git push origin --delete`) when the local branch is deleted. | | `--delete-all` | `false` | Delete every worktree (skips the current selection logic). | | `-s`, `--stash` | `false` | Stash uncommitted changes in the worktree before deleting. | | `--non-interactive` | `false` | No prompts; use defaults. |