git_diff_to_buf

Produce the complete formatted text output from a diff into a buffer.

extern (C) nothrow @nogc
int
git_diff_to_buf

Parameters

out_ libgit2_d.buffer.git_buf*

A pointer to a user-allocated git_buf that will contain the diff text

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.

Return Value

Type: int

0 on success or error code

Meta