160abc9a8d49fcc8b334a88d9b877f3ee3935229

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #2323 from michaelorr/slow-git-fix

Renaming config for parse_git_dirty() to avoid collision

Diff

 1diff --git a/lib/git.zsh b/lib/git.zsh
 2index 7aa5a0ea2fe8f928681efdb3857af10587c3abc3..e1ca9b1138f88255a8a49f3952dfafc85b29ebdd 100644
 3--- a/lib/git.zsh
 4+++ b/lib/git.zsh
 5@@ -13,7 +13,7 @@ parse_git_dirty() {
 6   local SUBMODULE_SYNTAX=''
 7   local GIT_STATUS=''
 8   local CLEAN_MESSAGE='nothing to commit (working directory clean)'
 9-  if [[ "$(command git config --get oh-my-zsh.hide-status)" != "1" ]]; then
10+  if [[ "$(command git config --get oh-my-zsh.hide-dirty)" != "1" ]]; then
11     if [[ $POST_1_7_2_GIT -gt 0 ]]; then
12           SUBMODULE_SYNTAX="--ignore-submodules=dirty"
13     fi