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 *);

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

Returns

int

Non-zero to abort the diff.

Versions