Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
4f71818a
Commit
4f71818a
authored
May 13, 2011
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #329 from juanghurtado/master
Support for $(current_branch) on git_parse_ahead()
parents
7958e54a
e129fc5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
git.zsh
lib/git.zsh
+1
-1
No files found.
lib/git.zsh
View file @
4f71818a
...
@@ -15,7 +15,7 @@ parse_git_dirty() {
...
@@ -15,7 +15,7 @@ parse_git_dirty() {
# Checks if there are commits ahead from remote
# Checks if there are commits ahead from remote
function
git_prompt_ahead
()
{
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
"
echo
"
$ZSH_THEME_GIT_PROMPT_AHEAD
"
fi
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