Skip to content
Browse files

Also expand args for git rebase x, where x is a shortcut to a branch

  • Loading branch information...
1 parent 42a5832 commit aa7dd471b5d1c45c3d70a7de616fef11ed61a798 @ndbroadbent committed Dec 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/git/aliases.sh
View
4 lib/git/aliases.sh
@@ -24,9 +24,9 @@ if type hub > /dev/null 2>&1; then export _git_cmd="hub"; fi
# Create 'git' function that calls hub if defined, and expands all numeric arguments
function git(){
- # Only expand args for a subset of git commands
+ # Only expand args for git commands that deal with paths or branches
case $1 in
- checkout|commit|reset|rm|blame|diff|add|log)
+ checkout|commit|reset|rm|blame|diff|add|log|rebase)
exec_scmb_expand_args "$_git_cmd" "$@";;
branch)
_scmb_git_branch_shortcuts "${@:2}";;

0 comments on commit aa7dd47

Please sign in to comment.
Something went wrong with that request. Please try again.