summaryrefslogtreecommitdiff
path: root/contrib/completion/git-prompt.sh
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-12-07 07:11:13 -0600
committerJunio C Hamano <gitster@pobox.com>2013-12-09 14:13:34 -0800
commitb5a480ea62aac529a6c9c283b17ad6317f18a8dd (patch)
tree252be955c77536c2f7c978bc254bebf91568327e /contrib/completion/git-prompt.sh
parentd2446dfd7f3b3f8948142cfb07a0270e2497d93f (diff)
downloadgit-fc/completion.tar.gz
completion: fix completion of certain aliasesfc/completion
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 come 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>
Diffstat (limited to 'contrib/completion/git-prompt.sh')
0 files changed, 0 insertions, 0 deletions