Add modified completion for git diff (#4592)

* Add modified completion for git diff

* Add modified completion for git diff
This commit is contained in:
Ron Gebauer 2017-12-12 22:16:43 +01:00 committed by Fabian Homborg
parent 75e17e007d
commit 7aaf897a72
2 changed files with 3 additions and 1 deletions

View file

@ -34,7 +34,7 @@ This section is for changes merged to the `major` branch that are not also merge
- `bd` (#4472)
- `jhipster` (#4472)
- Improved completions for
- `git` (#4395, #4396)
- `git` (#4395, #4396, #4592)
--

View file

@ -446,12 +446,14 @@ complete -c git -n '__fish_git_needs_command' -a diff -d 'Show changes between c
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'
complete -f -c git -n '__fish_git_using_command diff' -a '(__fish_git_modified_files)' -d 'File'
# TODO options
### 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' -a '(__fish_git_ranges)' -d 'Branch'
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_modified_files)' -d 'File'
# TODO options