From e7c401571b7b60d4084581cab3cc398619fc35b0 Mon Sep 17 00:00:00 2001 From: Collin Styles Date: Thu, 14 Nov 2019 13:01:03 -0800 Subject: [PATCH] Move unique remote branches up in suggested branches for git-checkout Currently we suggest `origin/mybranch` before `mybranch` which seems backwards. Most of the time users will want to check out `mybranch`. --- share/completions/git.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index fd3bd7ec3..d16b049a0 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -935,8 +935,8 @@ complete -f -c git -n '__fish_git_using_command add' -a '(__fish_git_files modif complete -f -c git -n '__fish_git_needs_command' -a checkout -d 'Checkout and switch to a branch' complete -k -f -c git -n '__fish_git_using_command checkout; and not contains -- -- (commandline -opc)' -a '(__fish_git_tags)' -d 'Tag' complete -k -f -c git -n '__fish_git_using_command checkout; and not contains -- -- (commandline -opc)' -a '(__fish_git_heads)' -d 'Head' -complete -k -f -c git -n '__fish_git_using_command checkout; and not contains -- -- (commandline -opc)' -a '(__fish_git_unique_remote_branches)' -d 'Unique Remote Branch' complete -k -f -c git -n '__fish_git_using_command checkout; and not contains -- -- (commandline -opc)' -a '(__fish_git_branches)' +complete -k -f -c git -n '__fish_git_using_command checkout; and not contains -- -- (commandline -opc)' -a '(__fish_git_unique_remote_branches)' -d 'Unique Remote Branch' complete -k -f -c git -n '__fish_git_using_command checkout; and not contains -- -- (commandline -opc)' -a '(__fish_git_recent_commits)' complete -k -f -c git -n '__fish_git_using_command checkout' -a '(__fish_git_files modified deleted)' complete -f -c git -n '__fish_git_using_command checkout' -s b -d 'Create a new branch'