diff options
author | Juan G. Hurtado <juan.g.hurtado@gmail.com> | 2011-05-09 13:32:42 +0200 |
---|---|---|
committer | Juan G. Hurtado <juan.g.hurtado@gmail.com> | 2011-05-09 13:32:42 +0200 |
commit | e129fc5a285ccc8ff3c6ae9770908a0b5c2836e7 (patch) | |
tree | 30d5a096e6fe7597c0f660f69709c419e8b3c989 /lib/git.zsh | |
parent | a525993f6b62f3c5acec0afd204ff517408b6f29 (diff) | |
download | zsh-e129fc5a285ccc8ff3c6ae9770908a0b5c2836e7.tar.gz zsh-e129fc5a285ccc8ff3c6ae9770908a0b5c2836e7.tar.bz2 zsh-e129fc5a285ccc8ff3c6ae9770908a0b5c2836e7.zip |
Adds support for $(current_branch) on git_parse_ahead()
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.
Diffstat (limited to 'lib/git.zsh')
-rw-r--r-- | lib/git.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git.zsh b/lib/git.zsh index e96f075be..2ace3d0e0 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -15,7 +15,7 @@ parse_git_dirty() { # Checks if there are commits ahead from remote function git_prompt_ahead() { - if $(echo "$(git log origin/master..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then + if $(echo "$(git log origin/$(current_branch)..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then echo "$ZSH_THEME_GIT_PROMPT_AHEAD" fi } |