mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-10 12:19:28 +00:00
💄
This commit is contained in:
parent
c18ca77d14
commit
e1c0d902d9
1 changed files with 6 additions and 13 deletions
|
@ -613,19 +613,12 @@ impl LocalWorktree {
|
|||
removed_entry_ids: Default::default(),
|
||||
next_entry_id: Arc::new(next_entry_id),
|
||||
};
|
||||
snapshot.insert_entry(Entry {
|
||||
id: snapshot.next_entry_id.fetch_add(1, SeqCst),
|
||||
kind: if metadata.is_dir {
|
||||
EntryKind::PendingDir
|
||||
} else {
|
||||
EntryKind::File(char_bag_for_path(root_char_bag, &path))
|
||||
},
|
||||
path: Arc::from(path),
|
||||
inode: metadata.inode,
|
||||
mtime: metadata.mtime,
|
||||
is_symlink: metadata.is_symlink,
|
||||
is_ignored: false,
|
||||
});
|
||||
snapshot.insert_entry(Entry::new(
|
||||
path.into(),
|
||||
&metadata,
|
||||
&snapshot.next_entry_id,
|
||||
snapshot.root_char_bag,
|
||||
));
|
||||
|
||||
let tree = Self {
|
||||
snapshot: snapshot.clone(),
|
||||
|
|
Loading…
Reference in a new issue