Constant git2::PATHSPEC_FAILURES_ONLY []

pub const PATHSPEC_FAILURES_ONLY: PathspecFlags = PathspecFlags{bits: raw::GIT_PATHSPEC_FAILURES_ONLY as u32,}

Means that the list returned does not need to keep the actual matching filenames. Use this to just test if there were any matches at all or in combination with PATHSPEC_FAILURES to validate a pathspec.