Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: git-completion 1.2 released
- X-seq: zsh-users 26198
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- Subject: Re: git-completion 1.2 released
- Date: Mon, 23 Nov 2020 15:44:46 +0000
- Archived-at: <https://zsh.org/users/26198>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-11/20201123154446.GA15080%40tarpaulin.shahaf.local2>
- Authentication-results: zsh.org; iprev=pass (out2-smtp.messagingengine.com) smtp.remote-ip=66.111.4.26; dkim=pass header.d=daniel.shahaf.name header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm1; bh=9/5iBqlYJVS26mq9KOOXxWmkVAwB4+9vbb9nn61m Cfw=; b=y5Spwrd5xEuFIgLvv5+x1C1VPBW6P7PN+HgioEnDVGypGdx7MZ/0LrtD bPmxDwkeGV1Qh7XHsJyW3B4/LpnN4ggG0Lk/vuhkm2MFWWxdp4vULzY4sWtWh+G4 voi9uehMseRM4vRGCa/+31esEKxtC5qcOu/D2C05gPS3bN46cEt3xrKkun6UUvKG 7VP4A6SxyFhrgfWZ3d0XHBFdcQoVIKyV8p0uOC6ICzVUGe4/XkiU8QlQm8Ns22In UTBzENYSoHFtNbZm3hbxat1I/f1j1iu+fGSK5p88Ss7F3U9CG4SeBFP/8ZqjUdTO pumKzvAKOVTxKd4kcynP0+fMGGoaeA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=9/5iBqlYJVS26mq9KOOXxWmkVAwB4+9vbb9nn61mC fw=; b=nRi7lquzYV3HYMk/G8et52Umo5zgoW9j1eLh5pjFqu8DCNjJ1CC6TCgqC lwmb0fCGEoOlKx1ggow+b4yt57JHSbW7It6swKfBK57PwStIkeL5XzajtyRTUgci 2dSF9yq1D1iCn9ZfeFtRmuwpRJ0WpsLwmG+vaF98+rSt2W8a1U+PQbCoI9x++slG l7u1d1uBwfDVkKGh0qR55cn4idp1rL+vBa3gQVQlk1Y+wYWX+KbX68GOMHDtjSmf PutBC8Rnlt7gGflwpcTPPrI2rgb5EG8jRZGTLNWA8HfXyv0h6gPLPtQU1s96MzBv m6Zfx309GgBjFdiFLAYcwsll6Oyrg==
- In-reply-to: <CAMP44s3hgjja=jFcmPOXiXCNMQtE2FNuzfzxOAhBGWi13wXfRg@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <CAMP44s00vgMW2n8Yp63T91-d1XUMc0Tesmc+ykU+WURokysq_w@mail.gmail.com> <20e670fa-074d-40c8-8bfd-b148fd0e3e77@www.fastmail.com> <CAMP44s22L6fAn_hcsnY+7tAWSjZ9L6T9vHOnLboz2G8su6kMgQ@mail.gmail.com> <20201123043359.GC31253@tarpaulin.shahaf.local2> <CAMP44s3hgjja=jFcmPOXiXCNMQtE2FNuzfzxOAhBGWi13wXfRg@mail.gmail.com>
- Sender: zsh-users-request@xxxxxxx
Felipe Contreras wrote on Mon, Nov 23, 2020 at 01:49:16 -0600:
> On Sun, Nov 22, 2020 at 10:34 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> > Felipe Contreras wrote on Sat, Nov 21, 2020 at 18:53:56 -0600:
>
> > > But the main use of "git send-email" is not to receive random files,
> > > it's to receive comittishes, and potentially some .patch files.
> >
> > So, just this? Will anyone want to complete files that _don't_ have
> > a .patch extension?
>
> Usually "git send-email" receives the patches generated by "git
> format-patch", so yeah, *.patch should be enough. But it probably
> wouldn't hurt to add *.diff files too, just in case.
Let's do that for 5.9, then. Thanks.
> > > If I do "git send-email master..<tab>" nothing completes with Zsh's
> > > official completion. It does with mine.
> >
> > Thanks for the bug report.
>
> You're welcome.
>
> But that's just an example. Another example is that "git -C ~/dev/git
> show <tab>" doesn't work,
That looks straightforward to add, considering the --git-dir/--work-tree
support already in place.
> and the _git function has a TODO about -c since 2011.
That TODO is so vague that it may well have been fixed at some point in
the intervening decade. For instance, it so happens that I did a bunch
of work on -c, but that work was in _git-config and I never saw that
TODO comment until now.
I suspect that TODO comment should simply be deleted for vagueness,
especially given its age.
> And there's a lot of others.
>
If so, they haven't been reported. We can't fix bugs unless they are
reported to us.
> I did some hacks to run Zsh's official Git completion against Git's
> testing framework, and at least half of them fail. I could tell you
> how to do that if you are interested.
Thanks for the offer. We would be interested, if the results could be used
without licensing concerns. zsh's _git is BSD-licensed.
> So in my view it's clear the priorities of the two completions are
> very different.
It's nothing as deliberate as that. It's more likely just that nobody
ever reported the bug whilst someone able and inclined to fix it
happened to be listening.
Also, in the specific case of «git -C», the Git maintainers probably use
that option far more often than the average zsh user does (to run their
HEAD builds against test repositories).
Cheers,
Daniel
(Will read the other emails later; got to leave now.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author