From feec10f3892170c5858b6438684ca7648db49403 Mon Sep 17 00:00:00 2001 From: Collin Styles Date: Mon, 14 Jun 2021 18:49:26 -0700 Subject: [PATCH] Add completions for different types of git resets --- share/completions/git.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index b213dfa1f..580f94d07 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -1545,7 +1545,9 @@ complete -f -c git -n "__fish_git_using_command reflog; and not __fish_seen_subc ### reset complete -c git -n __fish_git_needs_command -a reset -d 'Reset current HEAD to the specified state' -complete -f -c git -n '__fish_git_using_command reset' -l hard -d 'Reset files in working directory' +complete -f -c git -n '__fish_git_using_command reset' -l hard -d 'Reset the index and the working tree' +complete -f -c git -n '__fish_git_using_command reset' -l soft -d 'Reset head without touching the index or the working tree' +complete -f -c git -n '__fish_git_using_command reset' -l mixed -d 'Reset the index but not the working tree' complete -c git -n '__fish_git_using_command reset; and not contains -- -- (commandline -opc)' -a '(__fish_git_branches)' # reset can either undo changes to versioned modified files, # or remove files from the staging area.