Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git: Fix project diff sorting not matching the git panel when tree view is in use (#46283)
Cole Miller4831e5cba928
diff --git a/crates/git_ui/src/project_diff.rs b/crates/git_ui/src/project_diff.rsindex 5298f9c271c..2207b8c599a 100644--- a/crates/git_ui/src/project_diff.rs+++ b/crates/git_ui/src/project_diff.rs@@ -716,8 +716,7 @@ impl ProjectDiff {fn sort_prefix(repo: &Repository, repo_path: &RepoPath, status: FileStatus, cx: &App) -> u64 {let settings = GitPanelSettings::get_global(cx);- // Tree view can only sort by path- if settings.sort_by_path || settings.tree_view {+ if settings.sort_by_path && !settings.tree_view {TRACKED_SORT_PREFIX} else if repo.had_conflict_on_last_merge_head_change(repo_path) {CONFLICT_SORT_PREFIX