about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-08-04 16:39:25 +0000
committerClint Adams <clint@users.sourceforge.net>2007-08-04 16:39:25 +0000
commit72de6a1e7f16d6087383f003201f32503975b68b (patch)
tree4dd7459786d0cc8420e257f1ef76cfddc23a5131 /Completion
parent3c75ea5de5d14638e706264e424829a03294fced (diff)
downloadzsh-72de6a1e7f16d6087383f003201f32503975b68b.tar.gz
zsh-72de6a1e7f16d6087383f003201f32503975b68b.tar.xz
zsh-72de6a1e7f16d6087383f003201f32503975b68b.zip
23739: merge in git diff completion fixes from Nikolai Weibull's repository.
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_git8
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 3c10e0b1b..85be44246 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -939,11 +939,11 @@ _git-commit () {
 # TODO: __git_files should be __git_tree_files (do like in git-diff-tree and
 # such)
 _git-diff () {
-  _arguments \
+  _arguments -S \
     $diff_args \
-    '::original revision:__git_revisions' \
-    '::new revision:__git_revisions' \
-    '*:index file:__git_files' && ret=0
+    '::original revision:__git_commits' \
+    '::new revision:__git_commits' \
+    '*::index file:__git_modified_files' && ret=0
 }
 
 _git-fetch () {