From 1b15d1af7767de046f9f104dc0325f17afb74b36 Mon Sep 17 00:00:00 2001 From: Amir Yalon Date: Thu, 5 Jun 2014 18:31:47 +0300 Subject: Remove back references in freshness detection code Correct fix for issue #37 --- git-prompt.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/git-prompt.sh b/git-prompt.sh index 1eed094..89996d8 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -452,9 +452,9 @@ parse_git_status() { s/^\(# \)*On branch /branch=/p s/^nothing to commi.*/clean=clean/p s/^\(# \)*Initial commi.*/init=init/p - s/^\(# \)*Your branch is ahead of \(.\).\+\1 by [[:digit:]]\+ commit.*/freshness=${WHITE}↑/p - s/^\(# \)*Your branch is behind \(.\).\+\1 by [[:digit:]]\+ commit.*/freshness=${YELLOW}↓/p - s/^\(# \)*Your branch and \(.\).\+\1 have diverged.*/freshness=${YELLOW}↕/p + s/^\(# \)*Your branch is ahead of ..\+. by [[:digit:]]\+ commit.*/freshness=${WHITE}↑/p + s/^\(# \)*Your branch is behind ..\+. by [[:digit:]]\+ commit.*/freshness=${YELLOW}↓/p + s/^\(# \)*Your branch and ..\+. have diverged.*/freshness=${YELLOW}↕/p ' )" -- cgit v1.2.3