diff options
author | Robby Russell <robby@planetargon.com> | 2011-05-13 02:48:50 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2011-05-13 02:48:50 -0700 |
commit | 4f71818a8b5e6e4901c2534066e827f045bd8d25 (patch) | |
tree | 11c96e5ecf3e3d1b2a948f781711525dcb9bae77 /lib/git.zsh | |
parent | 7958e54aaf17235bf151180796e2c19edbe5e8a1 (diff) | |
parent | e129fc5a285ccc8ff3c6ae9770908a0b5c2836e7 (diff) | |
download | zsh-4f71818a8b5e6e4901c2534066e827f045bd8d25.tar.gz zsh-4f71818a8b5e6e4901c2534066e827f045bd8d25.tar.bz2 zsh-4f71818a8b5e6e4901c2534066e827f045bd8d25.zip |
Merge pull request #329 from juanghurtado/master
Support for $(current_branch) on git_parse_ahead()
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 } |