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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue