about summary refs log tree commit diff
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
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.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_git8
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index aa1555297..4655c8090 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-04  Clint Adams  <clint@zsh.org>
+
+	* 23739: Completion/Unix/Command/_git: merge in git diff
+	completion fixes from Nikolai Weibull's repository.
+
 2007-08-01  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* 23736: Src/hist.c: status for file save wasnʼt
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 () {