libgit2

git_diff_file_cb

Version:

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

Signature

typedef int git_diff_file_cb(const git_diff_delta *delta, float progress, void *payload);

Parameters

In
delta

A pointer to the delta data for the file

float
In
progress

Goes from 0 to 1 over the diff list

void *
In
payload

User-specified pointer from foreach function

Parameter To

Versions