diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/patch.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/git2/patch.h b/include/git2/patch.h index e09f625c0..1eca29d4a 100644 --- a/include/git2/patch.h +++ b/include/git2/patch.h @@ -234,15 +234,14 @@ GIT_EXTERN(int) git_patch_print( /** * Get the content of a patch as a single diff text. * - * @param string Allocated string; caller must free. + * @param out The git_buf to be filled in * @param patch A git_patch representing changes to one file * @return 0 on success, <0 on failure. */ -GIT_EXTERN(int) git_patch_to_str( - char **string, +GIT_EXTERN(int) git_patch_to_buf( + git_buf *out, git_patch *patch); - GIT_END_DECL /**@}*/ |