]> git.ipfire.org Git - thirdparty/git.git/commit - contrib/completion/git-completion.bash
completion: add hack to enable file mode in bash < 4
authorFelipe Contreras <felipe.contreras@gmail.com>
Sat, 27 Apr 2013 20:10:05 +0000 (15:10 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 27 Apr 2013 21:32:29 +0000 (14:32 -0700)
commit3ffa4df4b2a26768938fc6bf1ed0640885b2bdf1
tree20909f327198cd5a25c9ef31adece3b7bc87fe59
parentfda54ef1aa66b54031a37c72a463ef15d6411912
completion: add hack to enable file mode in bash < 4

This way we don't need all the compat stuff, different filters, and so
on. Also, now we complete exactly the same in bash 3 and bash 4.

This is the way bash-completion did it for quite some time, when bash 3
was supported. For more information about the hack:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=272660#64

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