summaryrefslogtreecommitdiff
path: root/contrib/completion/git-prompt.sh
diff options
context:
space:
mode:
authorLibravatar Marc Khouzam <marc.khouzam@ericsson.com>2012-12-11 21:36:57 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-12-11 21:49:25 -0800
commit75ed918bda00a0786bab7de3d220765226fe3f1e (patch)
tree9296ebd42f14c462ce13b9cc03b753bb1d0b3da3 /contrib/completion/git-prompt.sh
parentMerge branch 'ef/mingw-rmdir' (diff)
downloadtgif-75ed918bda00a0786bab7de3d220765226fe3f1e.tar.xz
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>
Diffstat (limited to 'contrib/completion/git-prompt.sh')
0 files changed, 0 insertions, 0 deletions