git_patch_to_buf

Get the content of a patch as a single diff text.

extern (C) nothrow @nogc
int
git_patch_to_buf

Parameters

out_ libgit2_d.buffer.git_buf*

The git_buf to be filled in

patch .git_patch*

A git_patch representing changes to one file

Return Value

Type: int

0 on success, <0 on failure.

Meta