mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 07:23:34 +08:00
completions/git: don't comlete commits after "git difftool -- "
This commit is contained in:
parent
b8e7b6bcb0
commit
6c460f643c
|
@ -1119,7 +1119,7 @@ end
|
|||
|
||||
### difftool
|
||||
complete -c git -n __fish_git_needs_command -a difftool -d 'Open diffs in a visual tool'
|
||||
complete -c git -n '__fish_git_using_command difftool' -k -a '(__fish_git_ranges)'
|
||||
complete -c git -n '__fish_git_using_command difftool; and not contains -- -- (commandline -opc)' -k -a '(__fish_git_ranges)'
|
||||
complete -c git -n '__fish_git_using_command difftool' -l cached -d 'Visually show diff of changes in the index'
|
||||
complete -f -c git -n '__fish_git_using_command difftool' -a '(__fish_git_files modified deleted modified-staged-deleted)'
|
||||
complete -f -c git -n '__fish_git_using_command difftool' -s g -l gui -d 'Use `diff.guitool` instead of `diff.tool`'
|
||||
|
|
Loading…
Reference in New Issue
Block a user