libgit2

git_pathspec_match_list_diff_entry

Version:

Get a matching diff delta by position.

This routine can only be used if the match list was generated by git_pathspec_match_diff. Otherwise it will always return NULL.

Signature

const git_diff_delta *git_pathspec_match_list_diff_entry(const git_pathspec_match_list *m, size_t pos);

Parameters

In
m

The git_pathspec_match_list object

size_t
In
pos

The index into the list

Returns

The filename of the match

Versions