libgit2

git_diff_print_raw

Version:

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

Returning a non-zero value from the callbacks will terminate the iteration and cause this return GIT_EUSER.

Signature

int git_diff_print_raw(git_diff_list *diff, git_diff_data_cb print_cb, void *payload);

Parameters

In
diff

A git_diff_list generated by one of the above functions.

In
print_cb

Callback to make per line of diff text.

void *
In
payload

Reference pointer that will be passed to your callback.

Returns

int

0 on success, GIT_EUSER on non-zero callback, or error code

Versions