zsh-users
 help / color / mirror / code / Atom feed
* Strange behavior about option completion of `git push`
@ 2020-09-17 17:22 Yasuhiro KIMURA
  2020-09-17 18:05 ` Bart Schaefer
  2020-09-17 19:36 ` Oliver Kiddle
  0 siblings, 2 replies; 4+ messages in thread
From: Yasuhiro KIMURA @ 2020-09-17 17:22 UTC (permalink / raw)
  To: zsh-users

Hello,

I use zsh 5.8 on some OSes (CentOS, Cygwin, Debian, FreeBSD, etc.) and
found strange behavior about option completion of `git push`.

At first let's type `git push --r` and hit TAB. Then it is completed
as `git push --re`. Options of `git push` that start with `--r` are
`--receive-pack`, `--recurse-submodules` and `--repo` and all of them
start with `--re`. So it is reasonable that completion works as above.

Next let's type `git push --f' and hit TAB. In this case options that
start with `--f' are `--follow-tags`, `--force` and
`--force-with-lease` and all of them start with `--fo`. So 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.

I checked definition of `_git-push` function in
/usr/share/zsh/5.8/functions/Completion/Unix/_git but didn't find the
source of the difference.

Would someone please explain why such differnce happens?

Best Regards.

---
Yasuhiro KIMURA


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-18  3:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17 17:22 Strange behavior about option completion of `git push` Yasuhiro KIMURA
2020-09-17 18:05 ` Bart Schaefer
2020-09-17 19:36 ` Oliver Kiddle
2020-09-18  3:11   ` Yasuhiro KIMURA

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).