Skip to content

Commit ff4732b

Browse files
committed
worktree: use 'prune' instead of 'expire' in help text
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 <[email protected]>
1 parent ddd4191 commit ff4732b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/git-worktree.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ mismatch, even if the links are correct.
271271
With `list`, output additional information about worktrees (see below).
272272

273273
`--expire <time>`::
274-
With `prune`, only expire missing worktrees older than _<time>_.
274+
With `prune`, only prune missing worktrees if older than _<time>_.
275275
+
276276
With `list`, annotate missing worktrees as prunable if they are older than
277277
_<time>_.

builtin/worktree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static int prune(int ac, const char **av, const char *prefix,
252252
OPT__DRY_RUN(&show_only, N_("do not remove, show only")),
253253
OPT__VERBOSE(&verbose, N_("report pruned working trees")),
254254
OPT_EXPIRY_DATE(0, "expire", &expire,
255-
N_("expire missing working trees older than <time>")),
255+
N_("prune missing working trees older than <time>")),
256256
OPT_END()
257257
};
258258

0 commit comments

Comments
 (0)