pub fn path_matches_sparse_patterns( path: &str, patterns: &[String], cone_mode: bool, ) -> bool
Returns true when path is included, using the same rules as grit sparse-checkout / apply_sparse_patterns.
path
grit sparse-checkout
apply_sparse_patterns