git-commit-vandalism/contrib/completion
Felipe Contreras 880111c11b completion: fix completing args of aliased "push", "fetch", etc.
Some commands need the first word to determine the actual action that is
being executed, however, the command is wrong when we use an alias, for
example 'alias.p=push', if we try to complete 'git p origin ', the
result would be wrong because __git_complete_remote_or_refspec() doesn't
know where it came from.

So let's override words[1], so the alias 'p' is override by the actual
command, 'push'.

Reported-by: Aymeric Beaumet <aymeric.beaumet@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-04-09 14:22:18 -07:00
..
git-completion.bash completion: fix completing args of aliased "push", "fetch", etc. 2014-04-09 14:22:18 -07:00
git-completion.tcsh remove #!interpreter line from shell libraries 2013-11-26 14:23:56 -08:00
git-completion.zsh completion: fix completing args of aliased "push", "fetch", etc. 2014-04-09 14:22:18 -07:00
git-prompt.sh Merge branch 'sg/prompt-svn-remote-fix' 2013-10-28 10:43:38 -07:00