Identify Worktree entries by their inode

This will allow us to re-parent elements when re-scanning when the file system changes.
This commit is contained in:
Nathan Sobo
2021-04-13 20:09:41 -06:00
committed by Nathan Sobo
parent 3c0bbe5eb5
commit 24cdfd2471
8 changed files with 95 additions and 89 deletions
+1 -1
View File
@@ -433,7 +433,7 @@ impl Buffer {
self.file.as_ref().map(|file| file.path(app))
}
pub fn entry_id(&self) -> Option<(usize, usize)> {
pub fn entry_id(&self) -> Option<(usize, u64)> {
self.file.as_ref().map(|file| file.entry_id())
}