From c7cbf6dad07272fa944bba242a50c368cbc437fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20K=C4=B1z=C4=B1l=C4=B1rmak?= Date: Sun, 5 May 2019 12:17:51 +0300 Subject: [PATCH] Make 'git checkout' complete recent commits --- share/completions/git.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/share/completions/git.fish b/share/completions/git.fish index 61646333c..d536eaa97 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -869,6 +869,7 @@ complete -f -c git -n '__fish_git_using_command add' -a '(__fish_git_files modif ### checkout 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 -op)' -a '(__fish_git_recent_commits)' complete -k -f -c git -n '__fish_git_using_command checkout; and not contains -- -- (commandline -op)' -a '(__fish_git_branches)' complete -k -f -c git -n '__fish_git_using_command checkout; and not contains -- -- (commandline -op)' -a '(__fish_git_heads)' -d 'Head' complete -k -f -c git -n '__fish_git_using_command checkout; and not contains -- -- (commandline -op)' -a '(__fish_git_tags)' -d 'Tag'