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(),
|
removed_entry_ids: Default::default(),
|
||||||
next_entry_id: Arc::new(next_entry_id),
|
next_entry_id: Arc::new(next_entry_id),
|
||||||
};
|
};
|
||||||
snapshot.insert_entry(Entry {
|
snapshot.insert_entry(Entry::new(
|
||||||
id: snapshot.next_entry_id.fetch_add(1, SeqCst),
|
path.into(),
|
||||||
kind: if metadata.is_dir {
|
&metadata,
|
||||||
EntryKind::PendingDir
|
&snapshot.next_entry_id,
|
||||||
} else {
|
snapshot.root_char_bag,
|
||||||
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,
|
|
||||||
});
|
|
||||||
|
|
||||||
let tree = Self {
|
let tree = Self {
|
||||||
snapshot: snapshot.clone(),
|
snapshot: snapshot.clone(),
|
||||||
|
|
Loading…
Reference in a new issue