summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-13 20:38:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-13 20:38:27 +0300
commit7cad6213c0cf7874f6d3cc9329a8d3a53bc9f629 (patch)
tree79911d7d6ece95079278af1172e464502b743ec7
parent87fa0839e30118d33fa9c4deec05127a62c5136e (diff)
downloadall-7cad6213c0cf7874f6d3cc9329a8d3a53bc9f629.tar.gz
all-7cad6213c0cf7874f6d3cc9329a8d3a53bc9f629.tar.bz2
all-7cad6213c0cf7874f6d3cc9329a8d3a53bc9f629.tar.xz
all-7cad6213c0cf7874f6d3cc9329a8d3a53bc9f629.zip
In status script report also behind commits repos.
-rwxr-xr-xstatus.sh2
1 files changed, 1 insertions, 1 deletions
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:"