Add --guess option in git checkout

This commit is contained in:
takenoko 2025-09-23 00:44:44 +09:00
parent d80f495fab
commit 63ce6ea489

View file

@ -1546,7 +1546,7 @@ endfunction
function! s:checkout_command(spec)
let a:spec.branch = s:git_origin_branch(a:spec)
return ['git', 'checkout', '-q', a:spec.branch, '--']
return ['git', 'checkout', '-q', '--guess', a:spec.branch, '--']
endfunction
function! s:merge_command(spec)