]> git.ipfire.org Git - thirdparty/git.git/commit
worktree: clarify --expire applies to missing worktrees
authorSam Bostock <sam.bostock@shopify.com>
Fri, 19 Dec 2025 18:16:08 +0000 (18:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 20 Dec 2025 06:03:32 +0000 (15:03 +0900)
commit20684baa349dcb8686eed192f12abe0881ff060e
tree11b2297f78b2e8ea7daeebb8b734584492eae59c
parent9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed
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 <sam@sambostock.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-worktree.adoc
builtin/worktree.c