9df79bc21ae2ea681e0528e8bb173dd12cb13ea3
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Merge pull request #4773 from mbologna/patch-1
Re-added $ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE
Diff
1diff --git a/lib/git.zsh b/lib/git.zsh
2index de51daafac8978eacd8ba37671cd71e3b90209db..f91b516bd38aafcf33e0b9b133381b78c2288fe1 100644
3--- a/lib/git.zsh
4+++ b/lib/git.zsh
5@@ -37,7 +37,9 @@ function git_remote_status() {
6 ahead=$(command git rev-list ${hook_com[branch]}@{upstream}..HEAD 2>/dev/null | wc -l)
7 behind=$(command git rev-list HEAD..${hook_com[branch]}@{upstream} 2>/dev/null | wc -l)
8
9- if [[ $ahead -gt 0 ]] && [[ $behind -eq 0 ]]; then
10+ if [[ $ahead -eq 0 ]] && [[ $behind -eq 0 ]]; then
11+ git_remote_status="$ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE"
12+ elif [[ $ahead -gt 0 ]] && [[ $behind -eq 0 ]]; then
13 git_remote_status="$ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE"
14 git_remote_status_detailed="$ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE_COLOR$ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE$((ahead))%{$reset_color%}"
15 elif [[ $behind -gt 0 ]] && [[ $ahead -eq 0 ]]; then