zsh-workers
 help / color / mirror / code / Atom feed
* git checkout --
@ 2008-08-21  1:01 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2008-08-21  1:01 UTC (permalink / raw)
  To: zsh-workers

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]' \


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-21  1:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-21  1:01 git checkout -- Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).