libgit2

git_diff_hunk_cb

Version:

When iterating over a diff, callback that will be made per hunk.

Signature

typedef int git_diff_hunk_cb(const git_diff_delta *delta, const git_diff_hunk *hunk, void *payload);

Parameters

In
delta

the delta

In
hunk

the hunk

void *
In
payload

the user-specified callback payload

Returns

int

0 or an error code

Parameter To

Versions