summaryrefslogtreecommitdiff
path: root/include/git2/patch.h
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2014-01-22 09:35:25 -0800
committerVicent Marti <vicent@github.com>2014-01-22 09:35:25 -0800
commitec088fec9dc65621275b9f16d746820af67592de (patch)
tree548900c29909e116ec5c3c1fe41370bef3460ac5 /include/git2/patch.h
parentaf2b969b6f63dafa8c55b88cadbcc7631c2dd30b (diff)
parentc05cd7924d2409741bb4cb1eb3ba843bea7ec4a2 (diff)
downloadlibgit2-ec088fec9dc65621275b9f16d746820af67592de.tar.gz
Merge pull request #2069 from isilkor/patch_to_buf
Expose patch serialization to git_buf
Diffstat (limited to 'include/git2/patch.h')
-rw-r--r--include/git2/patch.h7
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
/**@}*/