Clear descendants of existing children when scanning a directory
Co-Authored-By: Max Brunsfeld <max@zed.dev> Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
9723e46af4
commit
928ce0eec8
1 changed files with 2 additions and 0 deletions
|
@ -403,6 +403,8 @@ impl Snapshot {
|
|||
.insert(child.inode());
|
||||
}
|
||||
}
|
||||
|
||||
self.clear_descendants(child.inode(), &mut edits);
|
||||
}
|
||||
edits.push(Edit::Insert(child));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue