Struct
GgitPatch
since: 1.0
Description [src]
struct GgitPatch {
/* No available fields */
}
Represents a patch object.
Available since: 1.0
Constructors
ggit_patch_new_from_blobs
Directly generate a patch from the difference between two blobs.
since: 1.0
ggit_patch_new_from_diff
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.
since: 1.0
Instance methods
ggit_patch_ref
Atomically increments the reference count of patch
by one.
This function is MT-safe and may be called from any thread.
since: 1.0
ggit_patch_unref
Atomically decrements the reference count of patch
by one.
If the reference count drops to 0, patch
is freed.
since: 1.0