Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: vcs_info, get_data_git: make gitmisc variable local



This gets rid of a warning when warncreateglobal is enabled.
---
 Functions/VCS_Info/Backends/VCS_INFO_get_data_git |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
index 33e76d4..7b961a4 100644
--- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
+++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
@@ -3,7 +3,7 @@
 ## Distributed under the same BSD-ish license as zsh itself.
 
 setopt localoptions extendedglob NO_shwordsplit
-local gitdir gitbase gitbranch gitaction gitunstaged gitstaged gitsha1
+local gitdir gitbase gitbranch gitaction gitunstaged gitstaged gitsha1 gitmisc
 
 VCS_INFO_git_getaction () {
     local gitaction='' gitdir=$1
-- 
1.6.3.3.334.g916e1



Messages sorted by: Reverse Date, Date, Thread, Author