Declare local variables

Since we are using the _arguments helper, we need to define some local
variables in order to avoid altering the global environment.
This commit is contained in:
Aljaž "g5pw" Srebrnič
2013-08-20 22:25:30 +02:00
parent f81c243701
commit 7194283dfa

View File

@@ -319,6 +319,7 @@ if [ $shell = 'bash' ]; then
else else
function _git_index_tab_completion() { function _git_index_tab_completion() {
typeset -A opt_args typeset -A opt_args
local state state_descr context line
_arguments \ _arguments \
"--rebuild[Rebuild repository index]" \ "--rebuild[Rebuild repository index]" \