mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01: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
|
|
@ -1,5 +1,8 @@
|
||||||
2007-10-06 Clint Adams <clint@zsh.org>
|
2007-10-06 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
|
* Mikael Magnusson: 23907: Completion/Unix/Command/_git: add
|
||||||
|
--cached option to git-diff completion.
|
||||||
|
|
||||||
* 23908: Completion/Unix/Command/_git: add missing backslash in
|
* 23908: Completion/Unix/Command/_git: add missing backslash in
|
||||||
_git-svn.
|
_git-svn.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1585,6 +1585,7 @@ __git_zstyle_default ':completion::complete:git-commit:argument-rest:*' ignore-l
|
||||||
_git-diff () {
|
_git-diff () {
|
||||||
_arguments -S \
|
_arguments -S \
|
||||||
$diff_args \
|
$diff_args \
|
||||||
|
'--cached[show diff between index and named commit]' \
|
||||||
'::original revision:__git_commits' \
|
'::original revision:__git_commits' \
|
||||||
'::new revision:__git_commits' \
|
'::new revision:__git_commits' \
|
||||||
'*::index file:__git_modified_files' && ret=0
|
'*::index file:__git_modified_files' && ret=0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue