Add file completion to tcsh git completion.
commit75ed918bda00a0786bab7de3d220765226fe3f1e
authorMarc Khouzam <marc.khouzam@ericsson.com>
Tue, 11 Dec 2012 21:36:57 +0000 (11 21:36 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Dec 2012 05:49:25 +0000 (11 21:49 -0800)
tree9296ebd42f14c462ce13b9cc03b753bb1d0b3da3
parent73481593800a4aa17eb6a3d8c5740485735d3686
Add file completion to tcsh git completion.

For bash completion, the option '-o bashdefault' is used to indicate
that when no other choices are available, file completion should be
performed.  Since this option is not available in tcsh, no file
completion is ever performed.  Therefore, commands like 'git add ',
'git send-email ', etc, require the user to manually type out
the file name.  This can be quite annoying.

To improve the user experience we try to simulate file completion
directly in this script (although not perfectly).

The known issues with the file completion simulation are:
- Possible completions are shown with their directory prefix.
- Completions containing shell variables are not handled.
- Completions with ~ as the first character are not handled.

Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.tcsh