From d370adf5fefb5ce8611b3f8e7fbe2c99e69f5027 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sat, 15 Jun 2024 16:24:30 +0700 Subject: [PATCH] git: allow path completion after `git reset --` --- 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 f5bcab6de..268094b76 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -1992,7 +1992,7 @@ complete -c git -n '__fish_git_using_command reset' -n 'not contains -- -- (comm # or remove files from the staging area. # Deleted files seem to need a "--" separator. complete -f -c git -n '__fish_git_using_command reset' -n 'not contains -- -- (commandline -xpc)' -a '(__fish_git_files all-staged modified)' -complete -f -c git -n '__fish_git_using_command reset' -n 'contains -- -- (commandline -xpc)' -a '(__fish_git_files all-staged deleted modified)' +complete -F -c git -n '__fish_git_using_command reset' -n 'contains -- -- (commandline -xpc)' complete -f -c git -n '__fish_git_using_command reset' -n 'not contains -- -- (commandline -xpc)' -a '(__fish_git_reflog)' -d Reflog # TODO options