I made some (minor) git completions:
... there are probably other useful completions as well.
Open question:
git branch <tab> works, but git branch -d <tab> doesn't ...
Code:
complete git 'p/1/(add merge-recursive add--interactive merge-resolve am \
[...snip ludicrously long list of git commands ... ]/' \
'n@checkout@`git branch -a | sed -r "s|^[\* ]+(remotes/origin/)?||; /^HEAD/d" | sort -u`@' \
'n@branch@`git branch -a | sed -r "s|^[\* ]+(remotes/origin/)?||" /^HEAD/d | sort -u`@'
... there are probably other useful completions as well.
Open question:
git branch <tab> works, but git branch -d <tab> doesn't ...