Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _git diff



git.bitwi.se again

Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.16
diff -u -r1.16 _git
--- Completion/Unix/Command/_git	12 Jul 2007 06:34:21 -0000	1.16
+++ Completion/Unix/Command/_git	4 Aug 2007 16:36:05 -0000
@@ -939,11 +939,11 @@
 # 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 () {



Messages sorted by: Reverse Date, Date, Thread, Author