diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2011-04-28 18:46:36 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2011-04-28 18:46:36 +0300 |
commit | ef34c7d46fe97d6f92cefcb6e3a51a71871fa283 (patch) | |
tree | 8001ab1a6c7d122c67c3d28263785b2fb15d28fb /git-prompt.sh | |
parent | Indicator for when you branch is ahead of origin (diff) | |
download | git-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-x | git-prompt.sh | 3 |
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 |