git_patch_line_stats

Get line counts of each type in a patch.

This helps imitate a diff --numstat type of output. For that purpose, you only need the total_additions and total_deletions values, but we include the total_context line count in case you want the total number of lines of diff output that will be generated.

All outputs are optional. Pass null if you don't need a particular count.

@param total_context Count of context lines in output, can be null. @param total_additions Count of addition lines in output, can be null. @param total_deletions Count of deletion lines in output, can be null. @param patch The git_patch object @return 0 on success, <0 on error

extern (C) nothrow @nogc
int
git_patch_line_stats
(,,,
const(.git_patch)* patch
)

Meta