Re: [PATCH v2] worktree list: add --branch to select worktrees by branch
- From
Ben Knoble <ben.knoble@gmail.com>
- Date
- Oct 29, 2026, 14:23 UTC
- Message-ID
- <A0B73028-E3BF-45CE-8468-AA9B022C41F6@gmail.com>
- In-Reply-To
- <d0051192-8e86-403d-9aae-b988883ccfd9@gmail.com>
Show 13 quoted lines
> Le 29 oct. 2026 à 07:14, Phillip Wood <phillip.wood123@gmail.com> a écrit : > > Hi Jasper > >> On 29/10/2026 04:46, Jasper Mayone wrote: > >> Is that change in behavior acceptable? A script that reads >> %(worktreepath) would now get a path for a branch that is being >> rebased. I think that is a fix, since the rest of Git already >> considers that branch checked out, but I would like to hear if anyone >> relies on the empty value. > > I think we can consider the change in behavior to be a bug fix.
If we’re doing this in order to usefully feed it to worktree-remove, though, do you really want to remove a worktree that is mid-rebase? I would think that could have work you don’t want to throw away without considering. (Besides which, would it show up in --merged=origin? Hm.)
I suppose I would expect remove to fail without a « force » flag if the worktree is mid-rebase, but still.