libgit2

git_patch_to_buf

Version:

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

Signature

int git_patch_to_buf(git_buf *out, git_patch *patch);

Parameters

In
out

The git_buf to be filled in

In
patch

A git_patch representing changes to one file

Returns

int

0 on success, < 0 on failure.

Versions