Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
ed6645a2
Commit
ed6645a2
authored
Jun 17, 2015
by
Arnaud Rinquin
Committed by
ncanceill
Jun 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix plugin/git ggpull and ggpush backward compatibility
Current `ggpush` is `git push origin` instead of `git push origin $(current_branch)` Same for `ggpull`
parent
ab18795f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
git.plugin.zsh
plugins/git/git.plugin.zsh
+2
-2
No files found.
plugins/git/git.plugin.zsh
View file @
ed6645a2
...
...
@@ -105,7 +105,7 @@ ggl() {
git pull origin
"
${
b
:
=
$1
}
"
"
${
*[2,-1]
}
"
}
compdef _git
ggl
=
git-checkout
alias
ggpull
=
'g
gl
'
alias
ggpull
=
'g
it pull origin $(current_branch)
'
compdef _git
ggpull
=
git-checkout
ggp
()
{
if
[[
"$#"
!=
0
]]
&&
[[
"$#"
!=
1
]]
;
then
...
...
@@ -116,7 +116,7 @@ git push origin "${b:=$1}"
fi
}
compdef _git
ggp
=
git-checkout
alias
ggpush
=
'g
gp
'
alias
ggpush
=
'g
it push origin $(current_branch)
'
compdef _git
ggpush
=
git-checkout
ggpnp
()
{
if
[[
"$#"
==
0
]]
;
then
...
...
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