beautiful diff
This commit is contained in:
parent
cd10ba9e06
commit
90facc051a
5 changed files with 507 additions and 474 deletions
|
@ -297,11 +297,15 @@ impl Worktree {
|
|||
// After determining whether the root entry is a file or a directory, populate the
|
||||
// snapshot's "root name", which will be used for the purpose of fuzzy matching.
|
||||
let abs_path = path.into();
|
||||
eprintln!("get root metadata");
|
||||
|
||||
let metadata = fs
|
||||
.metadata(&abs_path)
|
||||
.await
|
||||
.context("failed to stat worktree path")?;
|
||||
|
||||
eprintln!("got root metadata");
|
||||
|
||||
cx.build_model(move |cx: &mut ModelContext<Worktree>| {
|
||||
let root_name = abs_path
|
||||
.file_name()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue