diff --git a/lib/git.zsh b/lib/git.zsh index fb4ad8ca6..2e197ad5c 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -87,6 +87,10 @@ function git_compare_version() { done echo 1 } +#this is unlikely to change so make it all statically assigned +POST_1_7_2_GIT=$(git_compare_version "1.7.2") +#clean up the namespace slightly by removing the checker function +unset -f git_compare_version #this is unlikely to change so make it all statically assigned POST_1_7_2_GIT=$(git_compare_version "1.7.2")