Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
4f71818a
Commit
4f71818a
authored
May 13, 2011
by
Robby Russell
Browse files
Merge pull request #329 from juanghurtado/master
Support for $(current_branch) on git_parse_ahead()
parents
7958e54a
e129fc5a
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/git.zsh
View file @
4f71818a
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment