diff options
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 |