Skip to content

Commit 4edfdd9

Browse files
committed
Correct fix for issue lvv#37
1 parent 70e2b1a commit 4edfdd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git-prompt.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,9 @@ parse_git_status() {
444444
s/^\(# \)*On branch /branch=/p
445445
s/^nothing to commi.*/clean=clean/p
446446
s/^\(# \)*Initial commi.*/init=init/p
447-
s/^\(# \)*Your branch is ahead of \(.\).\+\1 by [[:digit:]]\+ commit.*/freshness=${WHITE}↑/p
448-
s/^\(# \)*Your branch is behind \(.\).\+\1 by [[:digit:]]\+ commit.*/freshness=${YELLOW}↓/p
449-
s/^\(# \)*Your branch and \(.\).\+\1 have diverged.*/freshness=${YELLOW}↕/p
447+
s/^\(# \)*Your branch is ahead of \(.\).\+\2 by [[:digit:]]\+ commit.*/freshness=${WHITE}↑/p
448+
s/^\(# \)*Your branch is behind \(.\).\+\2 by [[:digit:]]\+ commit.*/freshness=${YELLOW}↓/p
449+
s/^\(# \)*Your branch and \(.\).\+\2 have diverged.*/freshness=${YELLOW}↕/p
450450
'
451451
)"
452452

0 commit comments

Comments
 (0)