completion: avoid ls-remote in certain scenarios
authorFelipe Contreras <felipe.contreras@gmail.com>
Wed, 29 May 2013 03:20:48 +0000 (22:20 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 2 Jun 2013 23:11:55 +0000 (16:11 -0700)
commite832f5c0968031d687706c97464be21f2da7be21
tree68f612f0c744885f4e4fc9f1ec378030d6f97da0
parentedca4152560522a431a51fc0a06147fc680b5b18
completion: avoid ls-remote in certain scenarios

It's _very_ slow in many cases, and there's really no point in fetching
*everything* from the remote just for completion. In many cases it might
be faster for the user to type the whole thing.

If the user manually specifies 'refs/*', then the full ls-remote
completion is triggered.

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