libgit2

git_blame_get_hunk_byline

Version:

Gets the hunk that relates to the given line number in the newest commit.

Signature

const git_blame_hunk *git_blame_get_hunk_byline(git_blame *blame, size_t lineno);

Parameters

In
blame

the blame structure to query

size_t
In
lineno

the (1-based) line number to find a hunk for

Returns

the hunk that contains the given line, or NULL on error

Versions