From 64a2ed761b97ddd0a4f778c6ac1556c28f590c10 Mon Sep 17 00:00:00 2001 From: may Date: Fri, 21 Apr 2023 03:42:32 +0200 Subject: [PATCH] add recent commits to completion for git switch --detach (cherry picked from commit beca70458b4413d72712c48a66f16ede66e73bc7) --- share/completions/git.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/share/completions/git.fish b/share/completions/git.fish index 756e09ed8..e1e02a6d1 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -1961,6 +1961,7 @@ complete -f -c git -n '__fish_git_using_command switch' -ka '(__fish_git_unique_ complete -f -c git -n '__fish_git_using_command switch' -ka '(__fish_git_branches)' 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 -rka '(__fish_git_recent_commits --all)' 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'