mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 05:10:28 +02:00
Mikael Magnusson: 23907: add --cached option to git-diff completion.
This commit is contained in:
parent
c0cb5d31d1
commit
e18276d031
2 changed files with 4 additions and 0 deletions
|
|
@ -1585,6 +1585,7 @@ __git_zstyle_default ':completion::complete:git-commit:argument-rest:*' ignore-l
|
|||
_git-diff () {
|
||||
_arguments -S \
|
||||
$diff_args \
|
||||
'--cached[show diff between index and named commit]' \
|
||||
'::original revision:__git_commits' \
|
||||
'::new revision:__git_commits' \
|
||||
'*::index file:__git_modified_files' && ret=0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue