Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: git-completion 1.2 released
- X-seq: zsh-users 26196
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- Subject: Re: git-completion 1.2 released
- Date: Mon, 23 Nov 2020 04:33:59 +0000
- Archived-at: <https://zsh.org/users/26196>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-11/20201123043359.GC31253%40tarpaulin.shahaf.local2>
- Authentication-results: zsh.org; iprev=pass (out3-smtp.messagingengine.com) smtp.remote-ip=66.111.4.27; 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@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:in-reply-to; s=fm1; bh=avc vlnzCcoKU9LKtuCofTeYiBnP4JyqKhZ3EEffqQxU=; b=Q+e7OYe4RTmzgY703wP NLhmfidNK97E7IKdeSofN/1OIsKzj2JqyIuvg5H9EgfertZIsEwNoIiLtALCCYYW HOxXX2rbUkNtgCrwY8GYzKQ0DPM43oSMpXaQuMj/PkvWKjybr2nJLAM/2j18gy8q LthySg59vemAdGu3pEZSz8nxr4jJG97RFWO1N2MVvCunrTx9jbY1TSFhpJJi+LB6 Oy7IF4JyTaOPmNEZyHIGk7bSZJHNMAMfBEFn33Usu53gk4CsAaLwT3YWSTH6zkZB tDfsf4JTSCTLdkgqqOkpbvJTw1rPvvC2c8FvNRQ6fBthqCiivXS9JcJtVe2ystnH Hyw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=avcvln zCcoKU9LKtuCofTeYiBnP4JyqKhZ3EEffqQxU=; b=I+BErp9wRXC/DPwwYiq8UP CTWJdyN5TTieSBOiGEXs99ccdIsyb687hbCUJ1zNqoTadV1ADZ3Q6dZWKiahpyg6 PyUlaZC2E3awyJSGuwPduGsa/CLIME943GX+XMlXCTSVqbnVuTcbeOtE43FcA7So Di+PDU6k4guxGJ62OooW5kqACBpf2r726ShzUBvl7xnforF6kcMDWT8zBVtIvlHx qj22nTCM/TqVymfuCJA7CYuRzagB1Q3ehZxiVRckTshF9srA5nqBzBqezdikPcyA GYZk0BOXzBBPzExemjbncBf/Rn3LrhxTakQzlQWG9d2X+zzePJC9iRI3E/MPfZZQ ==
- In-reply-to: <CAMP44s22L6fAn_hcsnY+7tAWSjZ9L6T9vHOnLboz2G8su6kMgQ@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>
- Sender: zsh-users-request@xxxxxxx
Felipe Contreras wrote on Sat, Nov 21, 2020 at 18:53:56 -0600:
> On Sat, Nov 21, 2020 at 10:05 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> >
> > Felipe Contreras wrote on Thu, 19 Nov 2020 16:05 +00:00:
> > > Git-completion is a friendly fork of the official Git completion and
> > > prompt scripts for Zsh and Bash.
> > >
> > > The main goal is to provide a more up-to-date completion for Zsh (I'm
> > > the developer), which is basically just a wrapper around the Bash
> > > completion.
> >
> > I was going to invite you to send patches to zsh's own _git, but then I
> > noticed that in README.asciidoc you claim that you've sent patches to
> > zsh's completion and "many" of them have been "ignored":
>
> Git's zsh completion, not Zsh's Git completion.
Thanks for clarifying this.
> > > Compared to Git upstream, you get many benefits for Zsh, for example:
> > > no extra unnecessary spaces, correct auto suffix removal, colors
> > > without PROMPT_COMMAND, custom aliases, fixed --no-options, and many
> > > more.
> >
> > I suspect some of these have been fixed in zsh's _git since you last
> > looked and others are configurable. (E.g., git-send-email(1), which you
> > mention below, completes not only files but also recent commits, and has
> > done so for a while.)
>
> 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?
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 81a060e4d..8d1567e39 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -4443,7 +4443,7 @@ _git-send-email () {
'--force[send emails even if safety checks would prevent it]' \
'(- *)--dump-aliases[dump configured aliases and exit]' \
'*: : _alternative -O expl
- "files:file:_files"
+ "files:file:_files -g \"*.patch\""
"commits:recent commit object name:__git_commit_objects_prefer_recent"'
}
> If I do "git send-email master..<tab>" nothing completes with Zsh's
> official completion. It does with mine.
Thanks for the bug report.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author