libgit2

git_email_create_from_commit

Version:

Create a diff for a commit in mbox format for sending via email. The commit must not be a merge commit.

Signature

int git_email_create_from_commit(git_buf *out, git_commit *commit, const git_email_create_options *opts);

Parameters

In
out

buffer to store the e-mail patch in

In
commit

commit to create a patch for

In
opts

email creation options

Returns

int

0 or an error code

Versions