zsh-workers
 help / color / mirror / code / Atom feed
From: "Daniel Shahaf" <d.s@daniel.shahaf.name>
To: dana <dana@dana.is>
Cc: zsh-workers@zsh.org, "Adrian Vollmer" <zsh@vollmer.syss.de>
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	[thread overview]
Message-ID: <7a2210af-0a67-4289-86c2-388e67eff32e@www.fastmail.com> (raw)
In-Reply-To: <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@vollmer.syss.de> 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

  reply	other threads:[~2019-03-08 20:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-07 19:23 Adrian Vollmer
2019-03-07 23:27 ` dana
2019-03-08 20:22   ` Daniel Shahaf [this message]
2019-03-09 16:25     ` dana
2019-03-09 16:43       ` Daniel Shahaf
2019-03-09 23:37         ` dana
2019-03-10 16:20           ` Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7a2210af-0a67-4289-86c2-388e67eff32e@www.fastmail.com \
    --to=d.s@daniel.shahaf.name \
    --cc=dana@dana.is \
    --cc=zsh-workers@zsh.org \
    --cc=zsh@vollmer.syss.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).