git2::PATHSPEC_NO_MATCH_ERROR [] [src]

pub const PATHSPEC_NO_MATCH_ERROR: PathspecFlags = $ BitFlags {
bits : $ value }

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