Add --no-index option completion for git diff

This commit is contained in:
Cody Frazer 2016-03-20 10:10:51 -05:00
parent dedc7f6f03
commit 1828def866

View File

@ -323,6 +323,7 @@ complete -f -c git -n '__fish_git_using_command commit' -a '(__fish_git_modified
complete -c git -n '__fish_git_needs_command' -a diff -d 'Show changes between commits, commit and working tree, etc'
complete -c git -n '__fish_git_using_command diff' -a '(__fish_git_ranges)' -d 'Branch'
complete -c git -n '__fish_git_using_command diff' -l cached -d 'Show diff of changes in the index'
complete -c git -n '__fish_git_using_command diff' -l no-index -d 'Compare two paths on the filesystem'
# TODO options
### difftool