]> git.alrj.org Git - zsh.d.git/commitdiff
Git prompt: recognize message from new versions
authorAmand Tihon <amand.tihon@iba-group.com>
Wed, 23 Mar 2011 10:35:33 +0000 (11:35 +0100)
committerAmand Tihon <amand.tihon@iba-group.com>
Wed, 23 Mar 2011 10:35:33 +0000 (11:35 +0100)
S60_git

diff --git a/S60_git b/S60_git
index 7a9ba7a1d0fbd4f060530a8f2ab119fdcc3ea202..bb2c6f0cf5434c7364bc6b6e9ed0113f658836e4 100644 (file)
--- a/S60_git
+++ b/S60_git
@@ -39,7 +39,8 @@ git_get_status() {
       gitstatus='+'
     fi
 
-    if [[ $(echo ${gitstat} | grep -c "^\# Changed but not updated:$") > 0 ]]; then
+    if [[ $(echo ${gitstat} | grep -c "^\# Changed but not updated:$") > 0 || \
+          $(echo ${gitstat} | grep -c "^\# Changes not staged for commit:$") > 0 ]]; then
       gitstatus="${gitstatus}!"
     fi