From 7cad6213c0cf7874f6d3cc9329a8d3a53bc9f629 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 13 Nov 2014 20:38:27 +0300 Subject: In status script report also behind commits repos. --- status.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'status.sh') diff --git a/status.sh b/status.sh index 96d1012..a1ec169 100755 --- a/status.sh +++ b/status.sh @@ -7,7 +7,7 @@ function status { DIR=`pwd` cd "$1" STR=`git diff --stat --color=always` - STR2=`git status|grep "Your branch is ahead"` + STR2=`git status|grep -E "Your branch is (behind|ahead)"` STR3=`git status -s -uno` if [[ -n "${STR}${STR2}${STR3}" ]]; then echo -e "$2:" -- cgit v1.2.3-60-g2f50