From ef34c7d46fe97d6f92cefcb6e3a51a71871fa283 Mon Sep 17 00:00:00 2001 From: Leonid Volnitsky Date: Thu, 28 Apr 2011 18:46:36 +0300 Subject: Indicator if your branch is behind origin --- git-prompt.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'git-prompt.sh') diff --git a/git-prompt.sh b/git-prompt.sh index 907f058..9429743 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -426,7 +426,8 @@ 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 .[/[:alnum:]]\+. by [[:digit:]]\+ commit\./freshness=${WHITE}↑/p + s/^# Your branch is ahead of .[/[:alnum:]]\+. by [[:digit:]]\+ commit.*/freshness=${WHITE}↑/p + s/^# Your branch is behind .[/[:alnum:]]\+. by [[:digit:]]\+ commit.*/freshness=${YELLOW}↓/p /^# Changes to be committed:/,/^# [A-Z]/ { s/^# Changes to be committed:/added=added;/p -- cgit v1.2.3