git_diff_commit_as_email

Create an e-mail ready patch for a commit.

Does not support creating patches for merge commits (yet).

Parameters

out_ libgit2_d.buffer.git_buf*

buffer to store the e-mail patch in

repo libgit2_d.types.git_repository*

containing the commit

commit libgit2_d.types.git_commit*

pointer to up commit

patch_no size_t

patch number of the commit

total_patches size_t

total number of patches in the patch set

flags uint

determines the formatting of the e-mail

diff_opts const(.git_diff_options)*

structure with options to influence diff or null for defaults.

Return Value

Type: int

0 or an error code

Meta