git_diff_print

Iterate over a diff generating formatted text output.

Returning a non-zero value from the callbacks will terminate the iteration and return the non-zero value to the caller.

extern (C) nothrow @nogc
int
git_diff_print

Parameters

diff .git_diff*

A git_diff generated by one of the above functions.

format .git_diff_format_t

A git_diff_format_t value to pick the text format.

print_cb .git_diff_line_cb

Callback to make per line of diff text.

payload void*

Reference pointer that will be passed to your callback.

Return Value

Type: int

0 on success, non-zero callback return value, or error code

Meta