Soares/oh-my-zsh — comment on commit b67393c414b81687599ad7cb4f3f526becf040ad
File:  line 0
By scialex:

you might want to try rewriting this using the --porcelain option. it is designed to be used in scripts and is guaranteed to be stable.