libgit2

git_diff_format_email

Version:

Create an e-mail ready patch from a diff.

Signature

int git_diff_format_email(git_buf *out, git_diff *diff, const git_diff_format_email_options *opts);

Parameters

In
out

buffer to store the e-mail patch in

In
diff

containing the commit

In
opts

structure with options to influence content and formatting.

Returns

int

0 or an error code

Versions