From fa8248f1704e6523e9c4fddb3a9e980b11445576 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 30 May 2018 18:10:03 +0200 Subject: [PATCH] [completions/git] Don't run __fish_git_refs twice for "log" That's already included in `__fish_git_ranges`, so we don't need to do it again. Mentioned in #4117. --- 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 eb3e6e52c..4b6c3b436 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -752,7 +752,7 @@ complete -f -c git -n '__fish_git_needs_command' -a init -d 'Create an empty git ### log complete -c git -n '__fish_git_needs_command' -a shortlog -d 'Show commit shortlog' complete -c git -n '__fish_git_needs_command' -a log -d 'Show commit logs' -complete -c git -n '__fish_git_using_command log; and not contains -- -- (commandline -op)' -a '(__fish_git_refs) (__fish_git_ranges)' +complete -c git -n '__fish_git_using_command log; and not contains -- -- (commandline -op)' -a '(__fish_git_ranges)' complete -c git -n '__fish_git_using_command log' -l follow -d 'Continue listing file history beyond renames' complete -c git -n '__fish_git_using_command log' -l no-decorate -d 'Don\'t print ref names'