Convert git status calculation to use Entry IDs as the key instead of repo relative paths
This commit is contained in:
@@ -2755,7 +2755,8 @@ 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();
|
||||
assert_eq!(root_entry.status_for(&snapshot, file), status);
|
||||
let file_entry_id = snapshot.entry_for_path(file).unwrap().id;
|
||||
assert_eq!(root_entry.status_for(file_entry_id), status);
|
||||
}
|
||||
|
||||
// Smoke test status reading
|
||||
|
||||
Reference in New Issue
Block a user