summaryrefslogtreecommitdiff
path: root/git-prompt.sh
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2011-04-28 18:46:36 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2011-04-28 18:46:36 +0300
commitef34c7d46fe97d6f92cefcb6e3a51a71871fa283 (patch)
tree8001ab1a6c7d122c67c3d28263785b2fb15d28fb /git-prompt.sh
parentIndicator for when you branch is ahead of origin (diff)
downloadgit-prompt-ef34c7d46fe97d6f92cefcb6e3a51a71871fa283.tar.gz
git-prompt-ef34c7d46fe97d6f92cefcb6e3a51a71871fa283.tar.bz2
git-prompt-ef34c7d46fe97d6f92cefcb6e3a51a71871fa283.zip
Indicator if your branch is behind origin
Diffstat (limited to 'git-prompt.sh')
-rwxr-xr-xgit-prompt.sh3
1 files changed, 2 insertions, 1 deletions
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