git_patch_get_line_in_hunk

Get data about a line in a hunk of a patch.

Given a patch, a hunk index, and a line index in the hunk, this will return a lot of details about that line. If you pass a hunk index larger than the number of hunks or a line index larger than the number of lines in the hunk, this will return -1.

extern (C) nothrow @nogc
int
git_patch_get_line_in_hunk

Parameters

out_ const(libgit2_d.diff.git_diff_line)**

The git_diff_line data for this line

patch .git_patch*

The patch to look in

hunk_idx size_t

The index of the hunk

line_of_hunk size_t

The index of the line in the hunk

Return Value

Type: int

0 on success, <0 on failure

Meta