1
0
mirror of https://github.com/git/git.git synced 2024-10-21 12:48:32 +02:00
git/contrib/completion
Sibo Dong 9542d56379 git-prompt.sh: localize option in __git_ps1_show_upstream
The variable 'option' is used in __git_ps1_show_upstream()
without being localized.

This clobbers the variable the user may be using for other
purposes, which is bad.  Luckily, $option is not used to carry
information around in the script as a global variable.  The use
of it in this script has very limited scope (namely, only inside
this function), so just declare that it is "local".

Signed-off-by: Sibo Dong <sibo.dong@outlook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2020-11-01 16:22:11 -08:00
..
.gitattributes
git-completion.bash completion: complete refs after 'git restore -s' 2020-09-26 15:30:05 -07:00
git-completion.tcsh
git-completion.zsh complete: zsh: add missing sub cmd completion candidates 2020-04-17 12:11:34 -07:00
git-prompt.sh git-prompt.sh: localize option in __git_ps1_show_upstream 2020-11-01 16:22:11 -08:00