Skip to content

Commit

Permalink
fix for issue lvv#37 (branch detection with new git)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvv committed Dec 10, 2013
1 parent 00a94f5 commit eeff805
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions git-prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -433,12 +433,12 @@ parse_git_status() {
eval " $(
git status 2>/dev/null |
sed -n '
s/^# On branch /branch=/p
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}↑/p
s/^# Your branch is behind \(.\).\+\1 by [[:digit:]]\+ commit.*/freshness=${YELLOW}↓/p
s/^# Your branch and \(.\).\+\1 have diverged.*/freshness=${YELLOW}↕/p
s/^\(# \)*Initial commi.*/init=init/p
s/^\(# \)*Your branch is ahead of \(.\).\+\1 by [[:digit:]]\+ commit.*/freshness=${WHITE}↑/p
s/^\(# \)*Your branch is behind \(.\).\+\1 by [[:digit:]]\+ commit.*/freshness=${YELLOW}↓/p
s/^\(# \)*Your branch and \(.\).\+\1 have diverged.*/freshness=${YELLOW}↕/p
'
)"

Expand Down

0 comments on commit eeff805

Please sign in to comment.