libgit2

git_diff_print_patch

Version:

Iterate over a diff generating text output like "git diff".

This is a super easy way to generate a patch from a diff.

Signature

int git_diff_print_patch(git_diff_list *diff, void *cb_data, git_diff_data_fn print_cb);

Parameters

In
diff
void *
In
cb_data
In
print_cb

Returns

int

Versions