libgit2

git_diff_print_compact

Version:

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

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

Signature

int git_diff_print_compact(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