Skip to content

Commit

Permalink
[git] -Fix: previous commit broke ahead/behind detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Juhász Péter committed Dec 13, 2013
1 parent 7172a9d commit 29affa9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -970,9 +970,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}${git_up_char}/p
s/^\(# \)*Your branch is behind \(.\).\+\1 by [[:digit:]]\+ commit.*/freshness=${YELLOW}${git_dn_char}/p
s/^\(# \)*Your branch and \(.\).\+\1 have diverged.*/freshness=${YELLOW}${git_updn_char}/p
s/^\(# \)*Your branch is ahead of \(.\).\+\2 by [[:digit:]]\+ commit.*/freshness=${WHITE}${git_up_char}/p
s/^\(# \)*Your branch is behind \(.\).\+\2 by [[:digit:]]\+ commit.*/freshness=${YELLOW}${git_dn_char}/p
s/^\(# \)*Your branch and \(.\).\+\2 have diverged.*/freshness=${YELLOW}${git_updn_char}/p
'
)"

Expand Down

0 comments on commit 29affa9

Please sign in to comment.