Produce the complete formatted text output from a diff into a buffer.
A pointer to a user-allocated git_buf that will contain the diff text
A git_diff generated by one of the above functions.
A git_diff_format_t value to pick the text format.
0 on success or error code
See Implementation
Produce the complete formatted text output from a diff into a buffer.