Git completion from Git 1.7 with tweaks.