Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git: Fix force-added files always showing as ignored (#47057)
prayansh_chhablani2867ec4bc25e
diff --git a/crates/editor/src/items.rs b/crates/editor/src/items.rsindex 3ff4d7da4eb..df5e43fc8c1 100644--- a/crates/editor/src/items.rs+++ b/crates/editor/src/items.rs@@ -1917,14 +1917,14 @@ pub fn entry_diagnostic_aware_icon_decoration_and_color(pub fn entry_git_aware_label_color(git_status: GitSummary, ignored: bool, selected: bool) -> Color {let tracked = git_status.index + git_status.worktree;- if ignored {- Color::Ignored- } else if git_status.conflict > 0 {+ if git_status.conflict > 0 {Color::Conflict} else if tracked.modified > 0 {Color::Modified} else if tracked.added > 0 || git_status.untracked > 0 {Color::Created+ } else if ignored {+ Color::Ignored} else {entry_label_color(selected)}