Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] __git_commit_objects_prefer_recent: local ret
- X-seq: zsh-workers 35258
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] __git_commit_objects_prefer_recent: local ret
- Date: Thu, 21 May 2015 20:37:38 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=postfix2; t= 1432233459; bh=XovbqosYhNhtFoi/yH9efk4ti2lN4GnCKpAzzG9391s=; b=O CfI1ggpus/BLGwxdm3DGqlWMx994kpj0htRJ+ptKGeYlOsfJZC36wqr/VnrmwDrY 03E0MhpO7s2ohY0dJJr/OmzN/n5d5hOGqSsUJEeJnQUGxTCYPg6OzIsudsFZ1D87 HI5m2R7Ur8S6BYSr7Ij2jjzjzwMX8gsoHiZNJycS+8=
- In-reply-to: <150521110516.ZM27844@torch.brasslantern.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: <1432229450-21417-1-git-send-email-genml+zsh-workers@thequod.de> <150521110516.ZM27844@torch.brasslantern.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 21.05.2015 20:05, Bart Schaefer wrote:
> On May 21, 7:30pm, Daniel Hahler wrote:
> }
> } Without this, `ret` will be set to 1 with `git diff --ex<tab>` and
> } result in duplicate entries:
> }
> } I am not sure if this is the right way to do it.
>
> Wouldn't it make more sense to put "local ret" in _get_recent_commits ?
>
I'm not sure - I've thought it was not used there on purpose, for when it gets called
for --fixup and --squash?
_arguments -w -S -s \
'(-a --all --interactive -o --only -i --include *)'{-a,--all}'[stage all modified and deleted paths]' \
'--fixup=[construct a commit message for use with rebase --autosquash]:commit to be amended:__git_recent_commits' \
'--squash=[construct a commit message for use with rebase --autosquash]:commit to be amended:__git_recent_commits' \
But putting it there appears to work, too.
Regards,
Daniel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iD8DBQFVXiXyfAK/hT/mPgARAsOXAKD35BaKCpszaRvmQaOygaMa4Pe3TgCgw+PD
ErPUBrNevfJG+46hYtIfx4k=
=zoKe
-----END PGP SIGNATURE-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author