Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: nits with new _git
- X-seq: zsh-workers 29564
- From: Nikolai Weibull <now@xxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: nits with new _git
- Date: Wed, 20 Jul 2011 13:28:57 +0200
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=T/ekRae+kFT7oeeRyRmth4A3LbISz90MZHo3YbN4rao=; b=Dwnf2ElPZJ6SuS3rn0Z4/c1hOi8Tmk1HCs9CkonFGihtGuzFcMkGpp94tsb/+WdAeU bwmlqkCb3OTFOcBC5FKeBLQ+EM61eI9bC24+bqlzoDDLTRG/lqa9Xwt2YlWz2N+y3Ydn 1t1VlQpg4yPpYEBCwLhYoeTIoz7v5GD3oNd44=
- In-reply-to: <BANLkTi=pMjD5rBJRaZrj5FLWVbndGAMGYg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <BANLkTinV2euaa_w+F7m7U0KMZm1ajYDMUg@mail.gmail.com> <BANLkTikbLN=MTgHsiQeNsbwYXMaJ7GVP+w@mail.gmail.com> <BANLkTi=pMjD5rBJRaZrj5FLWVbndGAMGYg@mail.gmail.com>
- Sender: nikolai.weibull@xxxxxxxxx
On Fri, Jun 3, 2011 at 23:39, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> It looks like
> this is a systematic error in the whole _git file, but should be
> easily fixed. _git() itself defines local ret=1, then does
> _call_function ret _git-$words[1], then _git-log() in this case sets
> ret=0 on success. Sounds good? Not really, because it doesn't return
> ret, so then _call_function overwrites ret with something else. The
> solution would seem to simply not use _call_function since none of the
> helper functions return anything, they just set ret directly.
I’d rather remove all superfluous ⟨&& ret=0⟩s and add ⟨integer ret=1⟩
where appropriate.
Opinions?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author