libgit2

git_pathspec_match_list_entry

Version:

Get a matching filename by position.

This routine cannot be used if the match list was generated by git_pathspec_match_diff. If so, it will always return NULL.

Signature

const char *git_pathspec_match_list_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

const char *

The filename of the match

Versions