mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
Add modified completion for git diff (#4592)
* Add modified completion for git diff * Add modified completion for git diff
This commit is contained in:
parent
75e17e007d
commit
7aaf897a72
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
--
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue