git_diff_format_email

Create an e-mail ready patch from a diff.

extern (C) nothrow @nogc
int
git_diff_format_email

Parameters

out_ libgit2_d.buffer.git_buf*

buffer to store the e-mail patch in

diff .git_diff*

containing the commit

opts const(.git_diff_format_email_options)*

structure with options to influence content and formatting.

Return Value

Type: int

0 or an error code

Meta