git_diff_stats_to_buf

Print diff statistics to a git_buf.

extern (C) nothrow @nogc
int
git_diff_stats_to_buf

Parameters

out_ libgit2_d.buffer.git_buf*

buffer to store the formatted diff statistics in.

stats const(.git_diff_stats)*

A git_diff_stats generated by one of the above functions.

format .git_diff_stats_format_t

Formatting option.

width size_t

Target width for output (only affects git_diff_stats_format_t.GIT_DIFF_STATS_FULL)

Return Value

Type: int

0 on success; non-zero on error

Meta