Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _git (large)
- X-seq: zsh-workers 23841
- From: Clint Adams <clint@xxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: PATCH: _git (large)
- Date: Thu, 27 Sep 2007 07:32:19 -0400
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <237967ef0709261616q39d1f76al9e34b8b5fb6603a7@xxxxxxxxxxxxxx>
- Mail-followup-to: Mikael Magnusson <mikachu@xxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20070925155927.GA22272@xxxxxxxxxxx> <237967ef0709251034u4f1edc29i4ecadbed57bee1d4@xxxxxxxxxxxxxx> <20070925175434.GA25244@xxxxxxxxxxx> <237967ef0709251144t4b553b5dla9ff570de41bbed4@xxxxxxxxxxxxxx> <20070925190011.GA26894@xxxxxxxxxxx> <237967ef0709261616q39d1f76al9e34b8b5fb6603a7@xxxxxxxxxxxxxx>
On Thu, Sep 27, 2007 at 01:16:00AM +0200, Mikael Magnusson wrote:
> Found another issue, with fix
> There is a reference to __git_tag_ids on line 2677 but i'm not sure
> what it's supposed to do exactly.
>
> (( $+functions[__git_tag_ids] )) ||
> __git_tag_ids () {
> }
>
> It should possibly just be removed?
I think this is a better fix, don't you?
Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.26
diff -u -r1.26 _git
--- Completion/Unix/Command/_git 25 Sep 2007 18:58:16 -0000 1.26
+++ Completion/Unix/Command/_git 27 Sep 2007 11:29:36 -0000
@@ -2676,6 +2676,12 @@
(( $+functions[__git_tag_ids] )) ||
__git_tag_ids () {
+ local -a refs
+
+ refs=(${${(f)"$(_call_program tag_ids git ls-remote --tags ./. 2>/dev/null)"}%$'\t'*})
+ __git_command_successful || return
+
+ _wanted tag_id expl 'tag object hash' compadd - $refs
}
(( $+functions[__git_heads_or_tags] )) ||
Messages sorted by:
Reverse Date,
Date,
Thread,
Author