Get the diff delta corresponding to the patch.
Get the idx'
th hunk in the patch.
the hunk index.
Get the line statistics of the patch.
Get the number of hunks in the patch.
Get the number of lines in hunk
.
the hunk index.
Atomically increments the reference count of patch
by one.
This function is MT-safe and may be called from any thread.
Write the contents of a patch to the provided stream.
a #GOutputStream.
Gets the content of a patch as a single diff text.
Atomically decrements the reference count of patch
by one.
If the reference count drops to 0, patch
is freed.
Directly generate a patch from the difference between two blobs.
This is just like ggit_diff_blobs() except it generates a patch object for the difference instead of directly making callbacks. You can use the standard ggit_patch accessor functions to read the patch data, and you must call ggit_patch_unref on the patch when done.
a #GgitBlob to diff from.
treat old_blob
as if it had this filename, or %NULL,
a #GgitBlob to diff to.
treat new_blob
as if it had this filename, or %NULL,
a #GgitDiffOptions, or %NULL.
The #GgitPatch is a newly created object contains the text diffs for the delta. You have to call ggit_patch_unref() when you are done with it. You can use the patch object to loop over all the hunks and lines in the diff of the one delta.
Represents a patch object.