From fafb75ea4a72475e688e32a3d61ac2e5565b9610 Mon Sep 17 00:00:00 2001 From: Amand Tihon Date: Wed, 23 Mar 2011 11:35:33 +0100 Subject: [PATCH] Git prompt: recognize message from new versions --- S60_git | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/S60_git b/S60_git index 7a9ba7a..bb2c6f0 100644 --- 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 -- 2.39.2