git format-patch - add protection wrapper around detail module