Apply collision technique from Jeff King ยท git/git@deadbee

See http://thread.gmane.org/gmane.comp.version-control.git/183939/focus=184004