Patch.from_blobs
Description:
[ CCode ( has_construct_function = false ) ]
public Patch.from_blobs (Blob? old_blob, string? old_as_path, Blob? new_blob, string? new_as_path, DiffOptions? diff_options) throws Error
public Patch.from_blobs (Blob? old_blob, string? old_as_path, Blob? new_blob, string? new_as_path, DiffOptions? diff_options) throws Error
Directly generate a patch from the difference between two blobs.
This is just like 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.
Parameters:
old_blob |
a Blob to diff from. |
old_as_path |
treat |
new_blob |
a Blob to diff to. |
new_as_path |
treat |
diff_options |
a DiffOptions, or null. |
Returns:
a newly created Patch or null. |