From bc04abe3eca950c231fec322c8339e3a82437e12 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 28 Mar 2023 17:19:16 +0200 Subject: [PATCH] completions/git: Don't take options for --{force-,}create We do the same for checkout -b. Fixes #9692 --- share/completions/git.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index ff2483f36..75ccd0684 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -1957,8 +1957,8 @@ complete -F -c git -n '__fish_git_using_command restore' -n '__fish_git_contains complete -f -c git -n __fish_git_needs_command -a switch -d 'Switch to a branch' complete -f -c git -n '__fish_git_using_command switch' -ka '(__fish_git_unique_remote_branches)' -d 'Unique Remote Branch' complete -f -c git -n '__fish_git_using_command switch' -ka '(__fish_git_local_branches)' -complete -f -c git -n '__fish_git_using_command switch' -r -s c -l create -d 'Create a new branch' -complete -f -c git -n '__fish_git_using_command switch' -r -s C -l force-create -d 'Force create a new branch' +complete -f -c git -n '__fish_git_using_command switch' -s c -l create -d 'Create a new branch' +complete -f -c git -n '__fish_git_using_command switch' -s C -l force-create -d 'Force create a new branch' complete -f -c git -n '__fish_git_using_command switch' -s d -l detach -d 'Switch to a commit for inspection and discardable experiment' -rka '(__fish_git_refs)' complete -f -c git -n '__fish_git_using_command switch' -l guess -d 'Guess branch name from remote branch (default)' complete -f -c git -n '__fish_git_using_command switch' -l no-guess -d 'Do not guess branch name from remote branch'