ed6645a2823dc6c3e0fae822186d79542682e68e
Author Arnaud Rinquin <rinquin.arnaud@gmail.com> Committer ncanceill <nicolas.canceill@ens-cachan.org> Date 2015-06-17 20:36 UTC
Message Fix plugin/git ggpull and ggpush backward compatibility
Current `ggpush` is `git push origin` instead of `git push origin $(current_branch)`
Same for `ggpull`
Diff 1 diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
2 index d59e0ca9f92f2a09e455299afa4c4b4e24427af1..1686187605a73b2ab6cced398243a995bf630b73 100644
3 --- a/plugins/git/git.plugin.zsh
4 +++ b/plugins/git/git.plugin.zsh
5 @@ -105,7 +105,7 @@ ggl() {
6 git pull origin "${b:=$1}" "${*[2,-1]}"
7 }
8 compdef _git ggl=git-checkout
9 -alias ggpull='ggl'
10 +alias ggpull='git pull origin $(current_branch)'
11 compdef _git ggpull=git-checkout
12 ggp() {
13 if [[ "$#" != 0 ]] && [[ "$#" != 1 ]]; then
14 @@ -116,7 +116,7 @@ git push origin "${b:=$1}"
15 fi
16 }
17 compdef _git ggp=git-checkout
18 -alias ggpush='ggp'
19 +alias ggpush='git push origin $(current_branch)'
20 compdef _git ggpush=git-checkout
21 ggpnp() {
22 if [[ "$#" == 0 ]]; then