From f81e8c7debf53bba7cc042c2fd36343a646d935b Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Thu, 8 Dec 2022 14:54:00 +0100 Subject: [PATCH] completions/git: complete refs for "git grep" --- share/completions/git.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/share/completions/git.fish b/share/completions/git.fish index be049243c..07a535bbe 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -1388,6 +1388,7 @@ complete -f -c git -n '__fish_git_using_command grep' -l or -d 'Combine patterns complete -f -c git -n '__fish_git_using_command grep' -l not -d 'Combine patterns using not' complete -f -c git -n '__fish_git_using_command grep' -l all-match -d 'Only match files that can match all the pattern expressions when giving multiple' complete -f -c git -n '__fish_git_using_command grep' -s q -l quiet -d 'Just exit with status 0 when there is a match and with non-zero status when there isn\'t' +complete -f -c git -n '__fish_git_using_command grep' -n 'not contains -- -- (commandline -opc)' -ka '(__fish_git_refs)' # TODO options, including max-depth, h, open-files-in-pager, contexts, threads, file ### init