Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _git (large)
- X-seq: zsh-workers 23844
- From: "Nikolai Weibull" <now@xxxxxxxx>
- To: "Mikael Magnusson" <mikachu@xxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: _git (large)
- Date: Thu, 27 Sep 2007 13:57:05 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=f+rrYjXSi8cCTgOj08boRlLngiEIeaAMmFUMofyEOXU=; b=cFo8v+CU6ykcS/+8+89jAFBaRxzqsoRSH0xHieHH2pkco6QWDFDyKAibsQWm3Bv3e3IJ4pP/1C3PnIjH0fweF4f+HLhoZDbTgkkYB58ZbdlPToFk8QAYfhmWXeD+gj1xKhCmBFhd6SlexPi4sgmqb6VrBo40EhHWx6IYsl36Bgo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=E4Sm35Y4Y6ViHtsPd0SwUFvh29L5EliMPMkrVxg2gvqTTFIrzfEdcpSfGwT85RTuNzqYKH3CKBJmTk8900fH/EnupL4/8C5pEkFELQwfuYy338BTcKPPjYM6V2n9yFda5sfbjTp2ZXN25kZrI8fe7WDmaU85Cpl+YlL8/dVw0lo=
- In-reply-to: <20070927113219.GA15735@xxxxxxxxxxx>
- 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> <20070927113219.GA15735@xxxxxxxxxxx>
- Sender: nikolai.weibull@xxxxxxxxx
On 9/27/07, Clint Adams <clint@xxxxxxx> wrote:
===================================================================
> 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
> }
__git_tags already does all this for you (through
__git_heads_or_tags). I'd use __git_tags instead of this.
nikolai
Messages sorted by:
Reverse Date,
Date,
Thread,
Author