Print diff statistics to a git_buf.
git_buf
buffer to store the formatted diff statistics in.
A git_diff_stats generated by one of the above functions.
git_diff_stats
Formatting option.
Target width for output (only affects GIT_DIFF_STATS_FULL)
0 on success; non-zero on error