Ignore excluded files on worktree entry refresh
This commit is contained in:
parent
1f6c69c7dc
commit
f0ca7141b8
11 changed files with 267 additions and 212 deletions
|
@ -218,7 +218,8 @@ impl PathMatcher {
|
|||
})
|
||||
}
|
||||
|
||||
// TODO kb tests
|
||||
// TODO kb tests for matching
|
||||
// TODO kb add an integration test on excluded file opening
|
||||
pub fn is_match<P: AsRef<Path>>(&self, other: P) -> bool {
|
||||
let other_path = other.as_ref();
|
||||
other_path.starts_with(&self.maybe_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue