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:
@@ -319,6 +319,7 @@ if [ $shell = 'bash' ]; then
|
||||
else
|
||||
function _git_index_tab_completion() {
|
||||
typeset -A opt_args
|
||||
local state state_descr context line
|
||||
|
||||
_arguments \
|
||||
"--rebuild[Rebuild repository index]" \
|
||||
|
||||
Reference in New Issue
Block a user