lib/git.zsh: Allow users to opt-out of git version checks

If we pre-define POST_GIT_1_7_2 then we can skip out on an extra
call to `git version`.
This commit is contained in:
David Aguilar 2012-04-01 20:27:37 -07:00
commit c1dfabba69

View file

@ -134,8 +134,8 @@ function git_compare_version() {
} }
#this is unlikely to change so make it all statically assigned #this is unlikely to change so make it all statically assigned
POST_1_7_2_GIT=$(git_compare_version "1.7.2") if [[ -z "$POST_1_7_2_GIT" ]]; then
POST_1_7_2_GIT=$(git_compare_version "1.7.2")
fi
#clean up the namespace slightly by removing the checker function #clean up the namespace slightly by removing the checker function
unset -f git_compare_version unset -f git_compare_version