Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in git tab completion: If git.showSignature = true is set globally, tab completion of commits is garbled
- X-seq: zsh-workers 44104
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: dana <dana@xxxxxxx>
- Subject: Re: Bug in git tab completion: If git.showSignature = true is set globally, tab completion of commits is garbled
- Date: Fri, 08 Mar 2019 15:22:31 -0500
- Cc: zsh-workers@xxxxxxx, "Adrian Vollmer" <zsh@xxxxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=message-id:in-reply-to:references:date :from:to:cc:subject:content-type; s=fm2; bh=HS4zObOF/mHFqSnZK79X LTvrHNue4A9iO2uxQzR2tag=; b=JY34PPFSBDOYAlQPXZYpH+YnsTDiFEycJGpv M2k0/646cX8FEzeLwOE0RSVRGauI96taxdmpBO28RXJ5GuCQ48sLlS+wMk+GYx9A J8WCCHBG7pQIIXCcb7kAjLw+oCkppKosLp7O83Pw3LMKG81jin/Jv2wtV0dlI3c5 ZS+4EpDIH2IWw3x/ZEgpiIU6SuhSttOP0Wnt/P9xadAntXCvAC5bkSCZlGzVuCnv TCmdJeWxrxSWnFlur4KeGijyF0BIp/bQngWmUwf7FDSjqZCj0/IuUSM7kilMTjYL 8GxyagvDJHAVciLCVwY7NmcneOs3KY/ih+LwVi1Bv4Nt04KOZQ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:references:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=HS4zObOF/mHFqSnZK 79XLTvrHNue4A9iO2uxQzR2tag=; b=S2ioRjxhzcfyJFgcoK7hw6vXVFsGLFAXE ic3hsQtPGQFm7lGuJu8jhlGN1uFbDggUOmC3dBchLbQcyYEL617GZaX7KEnVDrjl XmnqP6ztChvXPbl3YFsFJSQONH3weEC9tVRFUi1k8l3EG4nx4P2zysrh3VZLGzjE xcc/Ydoz6jxBLGaOZIwUjZuIOX/co3lV/tnoSF+Xmo5m4qV7vhYtJKalf2irJeVO mT7IEFlQtmbfG5cuo1mdm3Sj7J08g5HlXsX5I+XlOaSlD0cbjMGCplLaNWhKhMi+ d+xNAhrVPkSQQP3OPOoAtzIzDXzmOyYYbgYdQnj4lTqlgFszkoGJA==
- In-reply-to: <F03D392D-4496-4AD8-B196-BE8316799C62@dana.is>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20190307192305.GA3173@av.sy.gs> <F03D392D-4496-4AD8-B196-BE8316799C62@dana.is>
dana wrote on Thu, 07 Mar 2019 23:28 +00:00:
> On 7 Mar 2019, at 13:23, Adrian Vollmer <zsh@xxxxxxxxxxxxxxx> wrote:
> >to reproduce this bug, set showSignature = true in the log section of
> >your global git config file, then type git reset <TAB> in a git repo
> >that has a recent signed commit in its history.
>
> I guess this is the simple fix for this particular case. `git log` is called
> in a few other places, too, but i'm not sure if they're problematic. Probably
> are and i just don't know how to trigger it.
>
> Maybe it would make sense to do something more robust instead, though? For
> example, we could have a __git_call wrapper around _call_program that always
> calls git with a safe set of -c options, &c. It'd be a lot of lines changed,
> but any further issues like this could be fixed in one place. idk.
>
Should we use git-rev-list(1) instead of git-log(1)? The former is a
plumbing command, so should be the more appropriate interface for this
use-case.
My git(1) does not have the log.showSignature option so I couldn't test
this. (The knob is missing from _git-config() too.)
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author