pub fn path_matches(file: &str, target: &str) -> boolExpand 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.