From cc67e0b3b6b04ca0356834eb68a45b5fda1c220d Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 4 May 2012 21:50:37 +0200 Subject: bashrc/main: make grep in git-status more strict --- bashrc/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc/main.sh b/bashrc/main.sh index 3c769b7..cd5c5c4 100644 --- a/bashrc/main.sh +++ b/bashrc/main.sh @@ -34,7 +34,7 @@ _self_update() { read _merge; if [[ $_merge != 'n' ]]; then _local_commits="$(git rev-list old-origin..HEAD | xargs echo)" - _local_changes="$(git status | grep Change)" + _local_changes="$(git status | grep '^# Change')" if [[ -n "$_local_commits" ]]; then echo -e "\033[31m*\033[0m You have some local commits. I will now try to use the new origin/master" -- cgit v1.2.3