robbyrussell/oh-my-zsh — pull request #872 by scialex (2012-01-26 23:20:36+00:00)
Title: Fix git status indicator not working correctly when using an older version of git

commit dd14e07 made on December 21, 2011 by fl4t, described as "Ignore submodules dirty in prompt info" causes the git status indicator to never display the ZSH_THEME_GIT_PROMPT_DIRTY, when used with git<1.7.2.

This is due to the use of the --ignore-submodules option's usage in the lib/git.zsh file. This commit causes the shell to check the version number of git and, if the version is from before the --ignore-submodules option was added, it uses the --porcelain option to determine if anything has been changed.