Fix merge conflicts jumping (#28508)

This regressed in #27568, oops.

Release Notes:

- Fixed a bug causing conflicted files in the git panel to jump to the
"Tracked" section as soon as they were staged.
This commit is contained in:
Cole Miller 2025-04-10 10:29:36 -04:00 committed by GitHub
parent c10b1f7c61
commit 8ab25e2bac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2630,9 +2630,7 @@ impl RepositorySnapshot {
}
pub fn has_conflict(&self, repo_path: &RepoPath) -> bool {
self.statuses_by_path
.get(&PathKey(repo_path.0.clone()), &())
.map_or(false, |entry| entry.status.is_conflicted())
self.merge_conflicts.contains(repo_path)
}
/// This is the name that will be displayed in the repository selector for this repository.