Directly generate a patch from the difference between two blobs.
This is just like git_diff_blobs() except it generates a patch object
for the difference instead of directly making callbacks. You can use the
standard git_patch accessor functions to read the patch data, and
you must call git_patch_free() on the patch when done.
@param out_ The generated patch; null on error
@param old_blob Blob for old side of diff, or null for empty blob
@param old_as_path Treat old blob as if it had this filename; can be null
@param new_blob Blob for new side of diff, or null for empty blob
@param new_as_path Treat new blob as if it had this filename; can be null
@param opts Options for diff, or null for default options
@return 0 on success or error code < 0
Directly generate a patch from the difference between two blobs.
This is just like git_diff_blobs() except it generates a patch object for the difference instead of directly making callbacks. You can use the standard git_patch accessor functions to read the patch data, and you must call git_patch_free() on the patch when done.
@param out_ The generated patch; null on error @param old_blob Blob for old side of diff, or null for empty blob @param old_as_path Treat old blob as if it had this filename; can be null @param new_blob Blob for new side of diff, or null for empty blob @param new_as_path Treat new blob as if it had this filename; can be null @param opts Options for diff, or null for default options @return 0 on success or error code < 0