Revert "Convert git status calculation to use Entry IDs as the key instead of repo relative paths"
This reverts commit 728c6892c924ebeabb086e308ec4b5f56c4fd72a.
This commit is contained in:
parent
21e1bdc8cd
commit
0082d68d4a
7 changed files with 59 additions and 90 deletions
|
@ -2755,8 +2755,7 @@ async fn test_git_status_sync(
|
|||
let worktree = worktrees[0].clone();
|
||||
let snapshot = worktree.read(cx).snapshot();
|
||||
let root_entry = snapshot.root_git_entry().unwrap();
|
||||
let file_entry_id = snapshot.entry_for_path(file).unwrap().id;
|
||||
assert_eq!(root_entry.status_for(file_entry_id), status);
|
||||
assert_eq!(root_entry.status_for(&snapshot, file), status);
|
||||
}
|
||||
|
||||
// Smoke test status reading
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue