Re: [PATCH] Fix git-completion.bash for use in zsh
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:21
Alex Merry [off-list ref] writes: ...quoted
On 01/09/11 14:47, Alex Merry wrote:quoted
Certain versions (or option combinations) of zsh appear to treat things like local some_var=() as a function declaration. This makes errors appear when using it in combination with the GIT_PS1_SHOWUPSTREAM option.
The change in this patch itself may be innocuous, but we would point at
the log message of the commit this patch would create to the next person
who would write "local var=()" in contrib/completion/git-completion.bash
file and tell him to fix his patch.
And for that purpose, the above log message is way too vague. It is
unclear how the problem can be reproduced ("Certain versions"??? "option
combinations"??? Even if you do not exhaustively enumerate the condition,
you at least should be able to say which *one* version you observed the
problem with, and with what option combinations). It does not even say
what symptom to expect ("errors appear"??? What error message would one
get?). We would need a more useful explanation to help people who make
further changes to the code.
Also, the original patch was whitespace damaged IIRC.