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

@ -1012,9 +1012,10 @@ impl ProjectPanel {
let entry_range = range.start.saturating_sub(ix)..end_ix - ix;
for entry in &visible_worktree_entries[entry_range] {
let path = &entry.path;
let status = snapshot
.repo_for(&entry.path)
.and_then(|repo_entry| repo_entry.status_for(entry.id));
.repo_for(path)
.and_then(|entry| entry.status_for(&snapshot, path));
let mut details = EntryDetails {
filename: entry