From: Bart Schaefer <schaefer@brasslantern.com>
To: Yasuhiro KIMURA <yasu@utahime.org>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Strange behavior about option completion of `git push`
Date: Thu, 17 Sep 2020 11:05:43 -0700 [thread overview]
Message-ID: <CAH+w=7aHaWSKZAFeyA8EsWKgEf5xPpAK0A1SVOcHUZ2=oCZ+7g@mail.gmail.com> (raw)
In-Reply-To: <20200918.022213.2164194227802931452.yasu@utahime.org>
On Thu, Sep 17, 2020 at 10:24 AM Yasuhiro KIMURA <yasu@utahime.org> 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.
next prev parent reply other threads:[~2020-09-17 18:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-17 17:22 Yasuhiro KIMURA
2020-09-17 18:05 ` Bart Schaefer [this message]
2020-09-17 19:36 ` Oliver Kiddle
2020-09-18 3:11 ` Yasuhiro KIMURA
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='CAH+w=7aHaWSKZAFeyA8EsWKgEf5xPpAK0A1SVOcHUZ2=oCZ+7g@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=yasu@utahime.org \
--cc=zsh-users@zsh.org \
/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).