diff options
author | Robby Russell <robby@planetargon.com> | 2011-12-26 10:05:51 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2011-12-26 10:05:51 -0800 |
commit | b29602e66108e8319eaae28b8285caf2253105c7 (patch) | |
tree | 700c0ee3c3e4f5ad3763103de475f7eb2cbbf874 /lib | |
parent | 2b86624951d8145fbac2c790ff1f8c25f7490a94 (diff) | |
parent | dd14e075b7dd39906e2075ac6dd8f5bcc66b6129 (diff) | |
download | zsh-b29602e66108e8319eaae28b8285caf2253105c7.tar.gz zsh-b29602e66108e8319eaae28b8285caf2253105c7.tar.bz2 zsh-b29602e66108e8319eaae28b8285caf2253105c7.zip |
Merge pull request #764 from Fl4t/submodules
Ignore submodules dirty in prompt info
Diffstat (limited to 'lib')
-rw-r--r-- | lib/git.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git.zsh b/lib/git.zsh index f04343650..defa062c6 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -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" |