🎨 Make worktree repositories more consistent

This commit is contained in:
Max Brunsfeld 2023-05-19 14:28:26 -07:00
parent 6359333749
commit 32c7157906
2 changed files with 32 additions and 29 deletions

View file

@ -1011,7 +1011,7 @@ impl ProjectPanel {
let entry_range = range.start.saturating_sub(ix)..end_ix - ix;
for (entry, repo) in
snapshot.entries_with_repos(visible_worktree_entries[entry_range].iter())
snapshot.entries_with_repositories(visible_worktree_entries[entry_range].iter())
{
let status = (entry.path.parent().is_some() && !entry.is_ignored)
.then(|| repo.and_then(|repo| repo.status_for_path(&snapshot, &entry.path)))