--- /usr/share/zsh/functions/VCS_Info/Backends/VCS_INFO_get_data_git.old 2014-03-10 18:16:33.514629788 +0000 +++ /usr/share/zsh/functions/VCS_Info/Backends/VCS_INFO_get_data_git 2014-03-10 18:15:54.919823850 +0000 @@ -116,7 +116,7 @@ [[ "$(${vcs_comm[cmd]} rev-parse --is-inside-git-dir 2> /dev/null)" != 'true' ]] && \ ${vcs_comm[cmd]} rev-parse --quiet --verify HEAD &> /dev/null ; then # Default: off - these are potentially expensive on big repositories - ${vcs_comm[cmd]} diff --no-ext-diff --ignore-submodules --quiet --exit-code || + ${vcs_comm[cmd]} diff --no-ext-diff --ignore-submodules --quiet --exit-code &> /dev/null || gitunstaged=1 ${vcs_comm[cmd]} diff-index --cached --quiet --ignore-submodules HEAD 2> /dev/null (( $? && $? != 128 )) && gitstaged=1