robbyrussell/oh-my-zsh — pull request #870 by scialex (2012-01-26 22:53:54+00:00)
Title: Fix git status indicator not working when using an older version of git

commit dd14e075b7dd39906e2075ac6dd8f5bcc66b6129 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.