libgit2

git_diff_progress_cb

Version:

Diff progress callback.

Called before each file comparison.

Signature

typedef int git_diff_progress_cb(const git_diff *diff_so_far, const char *old_path, const char *new_path, void *payload);

Parameters

In
diff_so_far

The diff being generated.

const char *
In
old_path

The path to the old file or NULL.

const char *
In
new_path

The path to the new file or NULL.

void *
In
payload

the user-specified callback payload

Returns

int

0 or an error code

Versions