Skip to content

Commit

Permalink
Merge branch 'fc/complete-aliased-push'
Browse files Browse the repository at this point in the history
* fc/complete-aliased-push:
  completion: fix completing args of aliased "push", "fetch", etc.
  • Loading branch information
Junio C Hamano committed Apr 18, 2014
2 parents 427ed40 + 880111c commit 961c1b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2564,6 +2564,7 @@ __git_main ()

local expansion=$(__git_aliased_command "$command")
if [ -n "$expansion" ]; then
words[1]=$expansion
completion_func="_git_${expansion//-/_}"
declare -f $completion_func >/dev/null && $completion_func
fi
Expand Down
1 change: 1 addition & 0 deletions contrib/completion/git-completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ __git_zsh_bash_func ()

local expansion=$(__git_aliased_command "$command")
if [ -n "$expansion" ]; then
words[1]=$expansion
completion_func="_git_${expansion//-/_}"
declare -f $completion_func >/dev/null && $completion_func
fi
Expand Down

0 comments on commit 961c1b1

Please sign in to comment.