libgit2

git_blame_get_hunk_byindex

Version:

Gets the blame hunk at the given index.

Signature

const git_blame_hunk *git_blame_get_hunk_byindex(git_blame *blame, uint32_t index);

Parameters

In
blame

the blame structure to query

uint32_t
In
index

index of the hunk to retrieve

Returns

the hunk at the given index, or NULL on error

Versions