We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70e2b1a commit 4edfdd9Copy full SHA for 4edfdd9
git-prompt.sh
@@ -444,9 +444,9 @@ parse_git_status() {
444
s/^\(# \)*On branch /branch=/p
445
s/^nothing to commi.*/clean=clean/p
446
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
+ s/^\(# \)*Your branch is ahead of \(.\).\+\2 by [[:digit:]]\+ commit.*/freshness=${WHITE}↑/p
+ s/^\(# \)*Your branch is behind \(.\).\+\2 by [[:digit:]]\+ commit.*/freshness=${YELLOW}↓/p
+ s/^\(# \)*Your branch and \(.\).\+\2 have diverged.*/freshness=${YELLOW}↕/p
450
'
451
)"
452
0 commit comments