diff options
| author | Yoichi NAKAYAMA <yoichi.nakayama@gmail.com> | 2026-08-20 10:31:28 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-08-20 10:09:37 -0700 |
| commit | 4958524c32a10529604d74edd741891aeaa5c096 (patch) | |
| tree | db702f9e0b5c0abe0b1f04e6febec1ecb1a35ef0 /gitweb/gitweb.css | |
| parent | e9019fcafe0040228b8631c30f97ae1adb61bcdc (diff) | |
worktree add: shouldn't dwim if -b or -B is given
'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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.css')
0 files changed, 0 insertions, 0 deletions
