Browse code

Merge pull request #329 from juanghurtado/master

Support for $(current_branch) on git_parse_ahead()

Robby Russell authored on 13/05/2011 at 09:48:50
Showing 1 changed files
... ...
@@ -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
 }