Get the content of a patch as a single diff text.
The git_buf to be filled in
A git_patch representing changes to one file
0 on success, < 0 on failure.