completion: add support for backwards compatibility
authorFelipe Contreras <felipe.contreras@gmail.com>
Sat, 19 May 2012 02:41:35 +0000 (04:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 20 May 2012 21:48:28 +0000 (14:48 -0700)
commitb0a4b2d2570974f2050b5d43828dd8146505753e
treee73c5222c1e92cacb30b0e97ceddfb36bedb1552
parent7f02f3d7ecdda983f229b16f80e7c494fb2d3510
completion: add support for backwards compatibility

Some people might be relying on _git and _gitk to define custom aliases,
unfortunately, commit 6b179ad (completion: add new __git_complete
helper) broke that support.

  "bash: [: 1: unary operator expected"

This can be easily fixed by using __git_complete, but it's not meant to
be public.

Although _git and _gitk are probably not meant to be public, it's easy
to keep having support for them by having a wrapper to the proper
new function that is fully functional.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash