7ea758834baa2694c2e9301fed1a71faa9f12166

Author
Aleksey Orekhov <ao2391@columbia.edu>
Committer
Aleksey Orekhov <ao2391@columbia.edu>
Date

Message

changed variable PRE_1_7_2_GIT to POST_1_7_2_GIT to make it more accurate

Diff

 1diff --git a/lib/git.zsh b/lib/git.zsh
 2index c46aa608dc49ca2b0acb7ce53d24e78475dbf122..efaa943ff522c499937b719c205808267aa6596e 100644
 3--- a/lib/git.zsh
 4+++ b/lib/git.zsh
 5@@ -8,7 +8,7 @@ function git_prompt_info() {
 6 # Checks if working tree is dirty
 7 parse_git_dirty() {
 8   local SUBMODULE_SYNTAX=''
 9-  if [[ PRE_1_7_2_GIT -gt 0 ]]; then
10+  if [[ POST_1_7_2_GIT -gt 0 ]]; then
11         SUBMODULE_SYNTAX="--ignore-submodules=dirty"
12   fi
13   if [[ -n $(git status -s ${SUBMODULE_SYNTAX}  2> /dev/null) ]]; then
14@@ -70,7 +70,7 @@ git_prompt_status() {
15 }
16 
17 #this is unlikely to change so make it all statically assigned
18-PRE_1_7_2_GIT=$(git_compare_version "1.7.2")
19+POST_1_7_2_GIT=$(git_compare_version "1.7.2")
20 #clean up the namespace slightly by removing the checker function
21 unset -f git_compare_version()
22