Skip to main content

path_matches_sparse_patterns

Function path_matches_sparse_patterns 

Source
pub fn path_matches_sparse_patterns(
    path: &str,
    patterns: &[String],
    cone_mode: bool,
) -> bool
Expand description

Returns true when path is included, using the same rules as grit sparse-checkout / apply_sparse_patterns.