From ddd4191ecb391e10bf4b123f699384a3d609b4a8 Mon Sep 17 00:00:00 2001 From: Sam Bostock Date: Fri, 19 Dec 2025 09:48:08 -0500 Subject: [PATCH 1/2] worktree: clarify --expire applies to missing worktrees The `--expire` option for `git worktree list` and `git worktree prune` only affects worktrees whose working directory path no longer exists. The help text did not make this clear, and the documentation inconsistently used "unused" for prune but "missing" for list. This updates the help text and documentation to consistently describe these as "missing worktrees". Signed-off-by: Sam Bostock --- Documentation/git-worktree.adoc | 2 +- builtin/worktree.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/git-worktree.adoc b/Documentation/git-worktree.adoc index f272f797837f45..402d3630644337 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