Iterate over a diff generating formatted text output.
Returning a non-zero value from the callbacks will terminate the
iteration and cause this return GIT_EUSER
.
Reference pointer that will be passed to your callback.
0 on success, GIT_EUSER on non-zero callback, or error code