From 7194283dfac03e0a242e2bd675aa4d7df0065da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aljaz=CC=8C=20=22g5pw=22=20Srebrnic=CC=8C?= Date: Tue, 20 Aug 2013 22:25:30 +0200 Subject: [PATCH] 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. --- lib/git/repo_index.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/git/repo_index.sh b/lib/git/repo_index.sh index e517755..dcd16c8 100644 --- a/lib/git/repo_index.sh +++ b/lib/git/repo_index.sh @@ -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]" \