Constant git2::PATHSPEC_NO_MATCH_ERROR []

pub const PATHSPEC_NO_MATCH_ERROR: PathspecFlags = PathspecFlags{bits: raw::GIT_PATHSPEC_NO_MATCH_ERROR as u32,}

Means that match functions return the error code NotFound if no matches are found. By default no matches is a success.