git_patch_num_lines_in_hunk

Get the number of lines in a hunk.

extern (C) nothrow @nogc
int
git_patch_num_lines_in_hunk
(
const(.git_patch)* patch
,
size_t hunk_idx
)

Parameters

patch const(.git_patch)*

The git_patch object

hunk_idx size_t

Index of the hunk

Return Value

Type: int

Number of lines in hunk or git_error_code.GIT_ENOTFOUND if invalid hunk index

Meta