Match a pathspec against files in a diff list.
This matches the pathspec against the files in the given diff list.
If out
is not NULL, this returns a git_patchspec_match_list
. That
contains the list of all matched filenames (unless you pass the
GIT_PATHSPEC_FAILURES_ONLY
flag) and may also contain the list of
pathspecs with no match (if you used the GIT_PATHSPEC_FIND_FAILURES
flag). You must call git_pathspec_match_list_free()
on this object.
Combination of git_pathspec_flag_t options to control match
0 on success, -1 on error, GIT_ENOTFOUND if no matches and the GIT_PATHSPEC_NO_MATCH_ERROR flag is used