Re: [PATCH v2] worktree add: shouldn't dwim if -b or -B is given
Yoichi Nakayama <[email protected]> Wed, 5 Aug 2026 21:30:33 +0900
| Newsgroups | org.kernel.vger.git |
|---|---|
| Message-ID | <CAF5D8-sca=qutDYH=SZEjZsWFGkFAVLiJZz27jzUOfhvi3LWKQ@mail.gmail.com> |
On Wed, Aug 5, 2026 at 9:16 PM Yoichi NAKAYAMA via GitGitGadget <[email protected]> wrote: > Range-diff vs v1: > > 1: 908a32fb56 ! 1: b00f6c2fa1 worktree add: shouldn't dwim if -b or -B is given > @@ Metadata > ## Commit message ## > worktree add: shouldn't dwim if -b or -B is given > > - 'git worktree add <path> <branch>' DWIMs <branch> to a > + git worktree add <path> <branch> DWIMs <branch> to a > remote-tracking branch when neither -b, -B, nor --detach > is given. > > - However, 'git worktree add -b <new-branch> <path> <branch>' can > + However, git worktree add -b <new-branch> <path> <branch> can > still DWIM <branch>, causing <new-branch> to be ignored. > > This is a regression introduced in v2.42.0 I accidentally removed the quotes in the commit message. I'll fix it. -- Yoichi NAKAYAMA