Re: [PATCH] worktree: clarify --expire applies to missing worktrees
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Dec 20, 2025, 07:14 UTC
- Message-ID
- <CAPig+cTsKgzLvz_BJxTLqRfc5A7CK_FNo_L6TDOGPVGG9eXDCw@mail.gmail.com>
- In-Reply-To
- <xmqq4iplvhao.fsf@gitster.g>
On Sat, Dec 20, 2025 at 12:44 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> I wonder if this would work better. > > `prune`:: > Remove worktree information in `$GIT_DIR/worktrees` > only, without touching the working tree. This is > often needed when the working tree is lost (e.g., > the user manually removed it) and the worktree > information has become dangling.
Yes, this is a useful improvement, although one part confuses me (and I would omit it). In particular, if the working tree is lost, thus the `$GIT_DIR/worktrees` is dangling ought to be removed, then I'm not sure why you would say "without touching the working tree" (which is already lost).