git_patch_size

Look up size of patch diff data in bytes

This returns the raw size of the patch data. This only includes the actual data from the lines of the diff, not the file or hunk headers.

If you pass include_context as true (non-zero), this will be the size of all of the diff output; if you pass it as false (zero), this will only include the actual changed lines (as if context_lines was 0).

extern (C) nothrow @nogc
size_t
git_patch_size

Parameters

patch .git_patch*

A git_patch representing changes to one file

include_context int

Include context lines in size if non-zero

include_hunk_headers int

Include hunk header lines if non-zero

include_file_headers int

Include file header lines if non-zero

Return Value

Type: size_t

The number of bytes of data

Meta