bind get_patch and print_to_str
Submitted by Sindhu S
Link to original bug (#703211)
Description
Created attachment 247930 Bind get_patch and patch_to_str
Please see line 125 - 128 of https://github.com/libgit2/libgit2/blob/development/tests-clar/diff/patch.c#L106
We can implement format-patch feature easily by having get_patch (takes a diff object and returns a patch object) and print_to_str (takes a patch object and gives a string) binded in libgit2-glib. The string thus obtained can be written on to a file.
The patch doesn't have any comments in the comment block as I have done this rather by instinct than my knowledge of GObject, so I currently don't know technical jargon required for the comments.
Patch 247930, "Bind get_patch and patch_to_str":
0001-Bind-get_patch-and-patch_to_str.patch
Version: git master
Resolution: RESOLVED FIXED