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

PATCH: _git tags in refspecs



This comes from Sean Finney, who wants tags completed where refspecs are
valid.

Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.51
diff -u -r1.51 _git
--- Completion/Unix/Command/_git	22 Nov 2007 16:46:35 -0000	1.51
+++ Completion/Unix/Command/_git	22 Nov 2007 19:05:45 -0000
@@ -2801,7 +2801,9 @@
     if compset -S ':*'; then
       __git_heads
     else
-      __git_heads -qS ':'
+      _alternative \
+       'tags:tag:__git_tags' \
+       'heads:head:__git_heads -qS :'
     fi
   fi
 }



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