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
|
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]" \
|
||||||
|
|||||||
Reference in New Issue
Block a user