libgit2

git_blame_hunk_byindex

Version:

Gets the blame hunk at the given index.

Signature

const git_blame_hunk *git_blame_hunk_byindex(git_blame *blame, size_t index);

Parameters

In
blame

the blame structure to query

size_t
In
index

index of the hunk to retrieve

Returns

the hunk at the given index, or NULL on error

Versions