Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _git tags in refspecs
- X-seq: zsh-workers 24115
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: _git tags in refspecs
- Date: Thu, 22 Nov 2007 14:07:31 -0500
- Cc: seanius@xxxxxxxxxx
- Mail-followup-to: zsh-workers@xxxxxxxxxx, seanius@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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