Changes method git_parse_ahead() on git.zsh lib file. Before this
change it checked directly against origin/master branch. Now it
uses $(current_branch) to check for not pushed changes against
the current remote branch.
... | ... |
@@ -15,7 +15,7 @@ parse_git_dirty() { |
15 | 15 |
|
16 | 16 |
# Checks if there are commits ahead from remote |
17 | 17 |
function git_prompt_ahead() { |
18 |
- if $(echo "$(git log origin/master..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then |
|
18 |
+ if $(echo "$(git log origin/$(current_branch)..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then |
|
19 | 19 |
echo "$ZSH_THEME_GIT_PROMPT_AHEAD" |
20 | 20 |
fi |
21 | 21 |
} |