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 26070
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Yasuhiro KIMURA <yasu@xxxxxxxxxxx>
- Subject: Re: Strange behavior about option completion of `git push`
- Date: Thu, 17 Sep 2020 11:05:43 -0700
- Archived-at: <https://zsh.org/users/26070>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-09/CAH%2Bw%3D7aHaWSKZAFeyA8EsWKgEf5xPpAK0A1SVOcHUZ2%3DoCZ%2B7g%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-oi1-f178.google.com) smtp.remote-ip=209.85.167.178; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CWp/rOJTZ6zibO9Jx7Ys9j2rwBm6eNiwMSloVP/LdHg=; b=tQy7cWj3ujollciUXiVTJ0v2dZ+e4idltsUH22VQRxZWPnajzbac/6hPRcTPQCgJE7 1OYsXkhZwZLdj5CwpaGEjGfKOmvAd2KXM9DNwR+Mx4rqDvEBWGsb+J2M5xrgFRHQNbeZ XeuLnncYweGW5JNB/LmhNoKIO1zp/6Q6zk7MmvpfRPPFLwivyFH3gAAFCvBLf90XbTBy zMM1EIC/ZcAN+rqLYw1yMhojgXCLYVbQRG3/x9SbUjy0rK8MUuWwsFLt9bfB4UedHleJ 2qd2ccI7x1hGtrrapCcoyGEpVlnnB71ynmO+6KM3mGPuN/obEIiBV7hBwgC4QxN+3Bsr Xo1A==
- In-reply-to: <20200918.022213.2164194227802931452.yasu@utahime.org>
- 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>
- Sender: zsh-users-request@xxxxxxx
On Thu, Sep 17, 2020 at 10:24 AM Yasuhiro KIMURA <yasu@xxxxxxxxxxx> wrote:
>
> At first let's type `git push --r` and hit TAB. Then it is completed
> as `git push --re`.
>
> Next let's type `git push --f' and hit TAB. In this case ... expected
> behavior is that it will be completed as `git push --fo`. But what
> really happens is that there is no change after TAB is hit.
>
> Would someone please explain why such differnce happens?
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.
However, without a lot of digging, I don't know why that affects the
position of the first perceived ambiguity.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author