Skip to main content

path_matches

Function path_matches 

Source
pub fn path_matches(file: &str, target: &str) -> bool
Expand description

Whether the repository-relative file is target or inside it. An empty target is the whole repository. A file ending in / is an untracked folder git reported whole, which matches anything inside it too.