87f8251388ed2d99a430fd7f9695b8dc1048d3d2

Author
Michele Bologna <mbologna@users.noreply.github.com>
Committer
Michele Bologna <mbologna@users.noreply.github.com>
Date

Message

Re-added $ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE

Re-added $ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE variable which was removed in 9f55213

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