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