diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-13 20:38:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-13 20:38:27 +0300 |
commit | 7cad6213c0cf7874f6d3cc9329a8d3a53bc9f629 (patch) | |
tree | 79911d7d6ece95079278af1172e464502b743ec7 | |
parent | 87fa0839e30118d33fa9c4deec05127a62c5136e (diff) | |
download | all-7cad6213c0cf7874f6d3cc9329a8d3a53bc9f629.tar.gz all-7cad6213c0cf7874f6d3cc9329a8d3a53bc9f629.tar.bz2 all-7cad6213c0cf7874f6d3cc9329a8d3a53bc9f629.tar.xz all-7cad6213c0cf7874f6d3cc9329a8d3a53bc9f629.zip |
In status script report also behind commits repos.
-rwxr-xr-x | status.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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:" |