Create an e-mail ready patch from a diff.
buffer to store the e-mail patch in
containing the commit
structure with options to influence content and formatting.
0 or an error code
See Implementation
Create an e-mail ready patch from a diff.