print method
Prints diff statistics.
Width for output only affects formatting of GitDiffStats.full.
Throws a LibGit2Error if error occured.
Implementation
String print({required Set<GitDiffStats> format, required int width}) {
final formatGit2 = git_diff_stats_format_t.fromValue(
format.fold(0, (acc, e) => acc | e.value),
);
return bindings.statsPrint(
statsPointer: _diffStatsPointer,
format: formatGit2,
width: width,
);
}