mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
completions/git: also complete filepaths as second argument to git grep
Fixes a regression inf81e8c7de
(completions/git: complete refs for "git grep", 2022-12-08). Fixes #9513 (cherry picked from commit243ade838b
)
This commit is contained in:
parent
847119a65d
commit
2e30403f98
1 changed files with 1 additions and 1 deletions
|
@ -1468,7 +1468,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)'
|
||||
complete -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
|
||||
|
|
Loading…
Reference in a new issue