Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Strange behavior about option completion of `git push`
- X-seq: zsh-users 26072
- From: Yasuhiro KIMURA <yasu@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Strange behavior about option completion of `git push`
- Date: Fri, 18 Sep 2020 12:11:04 +0900 (JST)
- Archived-at: <https://zsh.org/users/26072>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-09/20200918.121104.642676791521054636.yasu%40utahime.org>
- Authentication-results: zsh.org; iprev=pass (gate.utahime.jp) smtp.remote-ip=183.180.29.210; dkim=pass header.d=utahime.org header.s=maybe2019112701 header.a=rsa-sha256; dmarc=none header.from=utahime.org; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1600398697; bh=PqELqfu8UkIKzSLJpD32hET89aUdlpAbd4D1FBHoDeU=; h=Date:To:Subject:From:In-Reply-To:References; b=cFEjJvMK5FjhDRX817e0kNHa+Zbvd56uVYqTzUYdTLlf3EMQ6gOpd8aoVB6WznIbx IMsuhUMB+i7tjD8mRyD9QZwjytZYfcfQtZ6gUP2+2lT9VDX4dNz3dminjlX+YdWq6x pgaw6SYPFLcL2Q4Qww8jimRmUYhJPgoNySsbCpg3tc1s0MPSaMQC4iGTEZVvGeovD2 tbH8j7AV9OSQfsPx2qEDhWRQ+WYwFHI822l65sfeo/FDPKAM/JHrO82pq1cIzEdn+C NGTPPyKBs7M4YQn8JOR0YwNTk4AZuDhWI+aMxfPU3mChyIAXLvYmJx5GB+DBEXeBbz 3aVwxZCNPgCfA==
- In-reply-to: <CAH+w=7aHaWSKZAFeyA8EsWKgEf5xPpAK0A1SVOcHUZ2=oCZ+7g@mail.gmail.com> <94652-1600371379.844993@tOXe.J2fU.pIBE>
- 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: <20200918.022213.2164194227802931452.yasu@utahime.org> <CAH+w=7aHaWSKZAFeyA8EsWKgEf5xPpAK0A1SVOcHUZ2=oCZ+7g@mail.gmail.com>
- Sender: zsh-users-request@xxxxxxx
From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
Subject: Re: Strange behavior about option completion of `git push`
Date: Thu, 17 Sep 2020 11:05:43 -0700
> I think the difference is that --force-with-lease has a required
> argument, which differs from the other two --f options, whereas none
> of the --r completions has an argument.
Oh, I didn't notice it.
From: Oliver Kiddle <opk@xxxxxxx>
Subject: Re: Strange behavior about option completion of `git push`
Date: Thu, 17 Sep 2020 21:36:19 +0200
> This appears to be a bug in the zsh completion internals. The difference
> between --f and --r is that for --f, the options are added with more
> than one call to compadd because there's a mix of suffix characters
> required on those options.
>
> Any further discussion on this line should probably go to -workers but a
> minimal function to reproduce the issue is as follows:
>
> compadd -M 'r:|.=*' one
> compadd -M 'r:|-=*' - --follow-tags --force
> compadd -M 'r:|-=*' - --force-with-lease
> return 0
>
> With _git_push the first of these compadd calls is from _ssh_hosts. The
> matching control options are needed. The latter two with - as a pivot
> but the first can use any character. The case with --r is equivalent to
> combining the latter two compadd calls into a single call.
>
> Matching control is known to have some gnarly issues.
It seems too much for me to handle this issue. So I would like to
leave the investigation of it to someone familiar with the internals
of zsh completion.
---
Yasuhiro KIMURA
Messages sorted by:
Reverse Date,
Date,
Thread,
Author