libgit2

git_diff_stats_to_buf

Version:

Print diff statistics to a git_buf.

Signature

int git_diff_stats_to_buf(git_buf *out, const git_diff_stats *stats, git_diff_stats_format_t format, size_t width);

Parameters

In
out

buffer to store the formatted diff statistics in.

In
stats

A git_diff_stats generated by one of the above functions.

In
format

Formatting option.

size_t
In
width

Target width for output (only affects GIT_DIFF_STATS_FULL)

Returns

int

0 on success; non-zero on error

Versions