[PATCH v2 2/2] worktree: use 'prune' instead of 'expire' in help text
- From
Sam Bostock via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Dec 19, 2025, 18:16 UTC
- Message-ID
- <ff4732b72a0d8c97c668167308039918362ffb9c.1766168169.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.2135.v2.git.git.1766168169.gitgitgadget@gmail.com>
From: Sam Bostock <sam.bostock@shopify.com>
Use 'prune' instead of 'expire' when describing the --expire option's effect on missing worktrees, since the terminology is clearer.
Signed-off-by: Sam Bostock <sam@sambostock.ca> --- Documentation/git-worktree.adoc | 2 +- builtin/worktree.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-worktree.adoc b/Documentation/git-worktree.adoc index 402d363064..29b43925f3 100644 --- a/Documentation/git-worktree.adoc +++ b/Documentation/git-worktree.adoc @@ -271,7 +271,7 @@ mismatch, even if the links are correct. With `list`, output additional information about worktrees (see below). `--expire <time>`:: - With `prune`, only expire missing worktrees older than _<time>_. + With `prune`, only prune missing worktrees if older than _<time>_. + With `list`, annotate missing worktrees as prunable if they are older than _<time>_. diff --git a/builtin/worktree.c b/builtin/worktree.c index 82fcbfeccf..3d6547c23b 100644 --- a/builtin/worktree.c +++ b/builtin/worktree.c @@ -252,7 +252,7 @@ static int prune(int ac, const char **av, const char *prefix, OPT__DRY_RUN(&show_only, N_("do not remove, show only")), OPT__VERBOSE(&verbose, N_("report pruned working trees")), OPT_EXPIRY_DATE(0, "expire", &expire, - N_("expire missing working trees older than <time>")), + N_("prune missing working trees older than <time>")), OPT_END() };
-- gitgitgadget