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

git checkout --



I'm gonna assume not and do this:

Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.86
diff -u -r1.86 _git
--- Completion/Unix/Command/_git	21 Aug 2008 00:38:20 -0000	1.86
+++ Completion/Unix/Command/_git	21 Aug 2008 01:00:02 -0000
@@ -1543,10 +1543,8 @@
     new_branch_reflog_arg='-l[create the new branch'\''s reflog]'
   fi
 
-  if (( words[(I)--] > 0 && words[(I)--] < CURRENT )); then
-    _arguments -C -S \
-      - update-files \
-        '*::file:->files' && ret=0
+  if compset -N '--'; then
+    __git_cached_files
   else
     _arguments -C -S \
         '-q[suppress feedback messages]' \



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