Function
GgitPatchnew_from_diff
Declaration [src]
GgitPatch*
ggit_patch_new_from_diff (
GgitDiff* diff,
gsize idx,
GError** error
)
Description [src]
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.
Parameters
diff |
GgitDiff |
A |
|
The data is owned by the caller of the function. | |
idx |
gsize |
Index into diff list. |
|
error |
GError ** |
The return location for a GError* , or NULL . |
Return value
Returns: | GgitPatch |
A newly created |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. | |
The return value can be NULL . |