Did a full circle and went back to # On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: git.zsh
#, ignoring untracked files, which seems to be the primary cause for slowness
Diff
1diff --git a/lib/git.zsh b/lib/git.zsh
2index fde30e2b91d95a9e7f1216e450f35499ea30dcd1..ccd3296658f8b5aec389a108106a37f95e64e149 100644
3--- a/lib/git.zsh
4+++ b/lib/git.zsh
5@@ -13,7 +13,7 @@ parse_git_dirty() {
6 if [[ $POST_1_7_2_GIT -gt 0 ]]; then
7 SUBMODULE_SYNTAX="--ignore-submodules=dirty"
8 fi
9- if [[ -n $(git diff ${SUBMODULE_SYNTAX} HEAD 2> /dev/null) ]]; then
10+ if [[ -n $(git status -s ${SUBMODULE_SYNTAX} -uno 2> /dev/null) ]]; then
11 echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
12 else
13 echo "$ZSH_THEME_GIT_PROMPT_CLEAN"