completion: zsh: fix __gitcomp_direct()
authorFelipe Contreras <redacted>
Sun, 25 Oct 2020 03:13:15 +0000 (22:13 -0500)
committerJunio C Hamano <redacted>
Mon, 26 Oct 2020 22:23:26 +0000 (15:23 -0700)
commit4ce2b5167bb63e7001e43ec5386528fb77c088fa
treef6794136589a00c5e66e65e1d0c57f338197512b
parent1d1c4a875900d69c7f0a31e44c3e370dc80ab1ce
completion: zsh: fix __gitcomp_direct()

Many callers append a space suffix, but zsh automatically appends a
space, making the completion add two spaces, for example:

  git log ma<tab>

Will complete 'master  '.

Let's remove that extra space.

Signed-off-by: Felipe Contreras <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/completion/git-completion.bash
contrib/completion/git-completion.zsh
git clone https://git.99rst.org/PROJECT