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:
Mikayla Maki 2023-05-10 08:49:30 -07:00 committed by Mikayla Maki
parent 21e1bdc8cd
commit 0082d68d4a
No known key found for this signature in database
7 changed files with 59 additions and 90 deletions

View file

@ -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