mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
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:
parent
b6ea876971
commit
c1dfabba69
1 changed files with 3 additions and 3 deletions
|
|
@ -134,8 +134,8 @@ function 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")
|
||||
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
|
||||
unset -f git_compare_version
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue