Create an e-mail ready patch for a commit.
Does not support creating patches for merge commits (yet).
patch number of the commit
total number of patches in the patch set
determines the formatting of the e-mail
structure with options to influence diff or NULL for defaults.
0 or an error code