From aa7dd471b5d1c45c3d70a7de616fef11ed61a798 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Sat, 15 Dec 2012 08:49:28 +1300 Subject: [PATCH] Also expand args for git rebase x, where x is a shortcut to a branch --- lib/git/aliases.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/git/aliases.sh b/lib/git/aliases.sh index 0d0080b..41db79f 100644 --- a/lib/git/aliases.sh +++ b/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}";;