Commit d24196cf authored by ncanceill's avatar ncanceill
Browse files
parent ed6645a2
...@@ -101,8 +101,12 @@ git push --force origin "${b:=$1}" ...@@ -101,8 +101,12 @@ git push --force origin "${b:=$1}"
} }
compdef _git ggf=git-checkout compdef _git ggf=git-checkout
ggl() { ggl() {
if [[ "$#" != 0 ]] && [[ "$#" != 1 ]]; then
git pull origin "${*}"
else
[[ "$#" == 0 ]] && local b="$(current_branch)" [[ "$#" == 0 ]] && local b="$(current_branch)"
git pull origin "${b:=$1}" "${*[2,-1]}" git pull origin "${b:=$1}"
fi
} }
compdef _git ggl=git-checkout compdef _git ggl=git-checkout
alias ggpull='git pull origin $(current_branch)' alias ggpull='git pull origin $(current_branch)'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment