pr-2192/yoichi/worktree-add-should-not-dwim-with-b-v4
tagged this
20 Aug 10:31
From: Yoichi NAKAYAMA <yoichi.nakayama@gmail.com> '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 still DWIM <branch>, causing <new-branch> to be ignored. This is a regression introduced by 128e5496b3 (worktree add: extend DWIM to infer --orphan, 2023-05-17), which appeared in Git 2.42. Signed-off-by: Yoichi NAKAYAMA <yoichi.nakayama@gmail.com> Submitted-As: https://lore.kernel.org/git/pull.2192.v4.git.1787221888406.gitgitgadget@gmail.com In-Reply-To: https://lore.kernel.org/git/pull.2192.git.1785852032626.gitgitgadget@gmail.com In-Reply-To: https://lore.kernel.org/git/pull.2192.v2.git.1785932208004.gitgitgadget@gmail.com In-Reply-To: https://lore.kernel.org/git/pull.2192.v3.git.1785934486496.gitgitgadget@gmail.com