More Git panel refinements (#21928)

- Add and wire through git method stubs
- Organize render methods
- Track modifier changes
- Swap commit buttons when `option`/`alt` is held
- More TODOs

Release Notes:

- N/A
This commit is contained in:
Nate Butler
2024-12-12 12:21:08 -05:00
committed by GitHub
parent ee6f834028
commit 573e096fc5
3 changed files with 230 additions and 42 deletions
+12 -1
View File
@@ -1,10 +1,21 @@
use ::settings::Settings;
use gpui::AppContext;
use gpui::{actions, AppContext};
use settings::GitPanelSettings;
pub mod git_panel;
mod settings;
actions!(
git_ui,
[
StageAll,
UnstageAll,
DiscardAll,
CommitStagedChanges,
CommitAllChanges
]
);
pub fn init(cx: &mut AppContext) {
GitPanelSettings::register(cx);
}