use git format-patch instead of diff