Thanks to visit codestin.com Credit goes to libgit2.org
Diff progress callback.
Called before each file comparison.
The diff being generated.
The path to the old file or NULL.
The path to the new file or NULL.
the user-specified callback payload
0 or an error code