is there a bash-completion script that supports filename completion? I use mostly mercurial and there I can type:
hg diff test/test_
Not really your desired answer but I wanted to let you know that soon fish (friendly interactive shell) will give you git filename completion support out of the box. It is currently in master with a 2.3.0 release coming soon.
https://github.com/fish-shell/fish-shell/issues/901
https://github.com/fish-shell/fish-shell/pull/2364
https://github.com/fish-shell/fish-shell/commit/c5c59d4acb00674bc37198468b5978f69484c628
If you have a status like this:
$ git status
modified: ../README.md
$ git add
:/README.md
You can also just type README
and hit tab and it will insert it for you if it is the only match. Friggin nice!