git_pathspec_matches_path

Try to match a path against a pathspec

Unlike most of the other pathspec matching functions, this will not fall back on the native case-sensitivity for your platform. You must explicitly pass flags to control case sensitivity or else this will fall back on being case sensitive.

extern (C) nothrow @nogc
int
git_pathspec_matches_path
(
const(.git_pathspec)* ps
,
uint flags
,
const(char)* path
)

Parameters

ps const(.git_pathspec)*

The compiled pathspec

flags uint

Combination of git_pathspec_flag_t options to control match

path const(char)*

The pathname to attempt to match

Return Value

Type: int

1 is path matches spec, 0 if it does not

Meta