buffer to store the e-mail patch in
containing the commit
pointer to up commit
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
Create an e-mail ready patch for a commit.
Does not support creating patches for merge commits (yet).