Skip to content

Commit

Permalink
Merge pull request ohmyzsh#764 from Fl4t/submodules
Browse files Browse the repository at this point in the history
Ignore submodules dirty in prompt info
  • Loading branch information
robbyrussell committed Dec 26, 2011
2 parents 2b86624 + dd14e07 commit b29602e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git.zsh
Expand Up @@ -6,7 +6,7 @@ function git_prompt_info() {

# Checks if working tree is dirty
parse_git_dirty() {
if [[ -n $(git status -s 2> /dev/null) ]]; then
if [[ -n $(git status -s --ignore-submodules=dirty 2> /dev/null) ]]; then
echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
else
echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
Expand Down

0 comments on commit b29602e

Please sign in to comment.