bash-completion: don't add quoted space for ZSH (fix regression)
commit451eb620d95e11c5bf44841214762fde83a161fe
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Sat, 14 Jan 2012 18:55:36 +0000 (14 19:55 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 30 Mar 2012 18:41:55 +0000 (30 13:41 -0500)
tree034decc006fd3acb524b0b51ce24e7ecfb5322f1
parent44a73f2daecbc99b08c351c3fe99d08a382fe063
bash-completion: don't add quoted space for ZSH (fix regression)

Commit a31e626 (completion: optimize refs completion) introduced a
regression for ZSH users: ref names were completed with a quoted trailing
space (i.e. "git checkout ma" completes to "git checkout master\ "). The
space is convenient for bash users since we use "-o nospace", but a
quoted space is worse than nothing. The absence of trailing space for ZSH
is a long-standing issue, that this patch is not fixing. We just fix the
regression by not appending a space when the shell is ZSH.

Original-patch-by: SZEDER Gábor <szeder@ira.uka.de>
Reported-by: Stefan Haller <lists@haller-berlin.de>
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash