summaryrefslogtreecommitdiff
path: root/status.sh
diff options
context:
space:
mode:
Diffstat (limited to 'status.sh')
-rwxr-xr-xstatus.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/status.sh b/status.sh
index e0be46a..6416e2c 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 -E "Your branch is (behind|ahead)")
+ STR2=$(git status|grep -E "Your branch is (behind|ahead)")$(git status|grep -E "have diverged")
STR3=$(git status -s -uno)
if [[ "${CMD}" == "commit" || "${CMD}" == "c" ]]; then
COMMIT=$(git rev-parse HEAD)