Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git_ui: Update todos (#22100)
Nate Butler426f94b310f7
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rsindex ea7585d9785..d64dd5ba502 100644--- a/crates/git_ui/src/git_panel.rs+++ b/crates/git_ui/src/git_panel.rs@@ -188,12 +188,12 @@ impl GitPanel {}fn should_show_scrollbar(_cx: &AppContext) -> bool {- // todo!(): plug into settings+ // TODO: plug into settingstrue}fn should_autohide_scrollbar(_cx: &AppContext) -> bool {- // todo!(): plug into settings+ // TODO: plug into settingstrue}@@ -255,34 +255,34 @@ impl GitPanel {impl GitPanel {fn stage_all(&mut self, _: &StageAll, _cx: &mut ViewContext<Self>) {- // todo!(): Implement stage all+ // TODO: Implement stage allprintln!("Stage all triggered");}fn unstage_all(&mut self, _: &UnstageAll, _cx: &mut ViewContext<Self>) {- // todo!(): Implement unstage all+ // TODO: Implement unstage allprintln!("Unstage all triggered");}fn discard_all(&mut self, _: &DiscardAll, _cx: &mut ViewContext<Self>) {- // todo!(): Implement discard all+ // TODO: Implement discard allprintln!("Discard all triggered");}/// Commit all staged changesfn commit_staged_changes(&mut self, _: &CommitStagedChanges, _cx: &mut ViewContext<Self>) {- // todo!(): Implement commit all staged+ // TODO: Implement commit all stagedprintln!("Commit staged changes triggered");}/// Commit all changes, regardless of whether they are staged or notfn commit_all_changes(&mut self, _: &CommitAllChanges, _cx: &mut ViewContext<Self>) {- // todo!(): Implement commit all changes+ // TODO: Implement commit all changesprintln!("Commit all changes triggered");}fn all_staged(&self) -> bool {- // todo!(): Implement all_staged+ // TODO: Implement all_stagedtrue}@@ -378,7 +378,7 @@ impl GitPanel {}}- // todo!(): Update expanded directory state+ // TODO: Update expanded directory statefn update_visible_entries(&mut self,new_selected_entry: Option<(WorktreeId, ProjectEntryId)>,diff --git a/crates/git_ui/src/git_ui.rs b/crates/git_ui/src/git_ui.rsindex 19aa5540739..5aa9a361fa1 100644--- a/crates/git_ui/src/git_ui.rs+++ b/crates/git_ui/src/git_ui.rs@@ -41,7 +41,7 @@ const REMOVED_COLOR: Hsla = Hsla {a: 1.0,};-// todo!(): Add updated status colors to theme+// TODO: Add updated status colors to themepub fn git_status_icon(status: GitFileStatus) -> impl IntoElement {match status {GitFileStatus::Added => Icon::new(IconName::SquarePlus).color(Color::Custom(ADDED_COLOR)),