Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/Command/
SourceControlManagement.rs

1//! # SourceControlManagement (Tauri command surface)
2//!
3//! Bridges SCM-viewlet UI requests from Sky to the
4//! `SourceControlManagementProvider` registry. Seven wire-bound
5//! commands, each in its own file (file name = Tauri command
6//! identifier per the Naming-Convention exception):
7//!
8//! - `GetAllSourceControlManagementState` - full snapshot of every provider,
9//!   group, and resource.
10//! - `GetSCMResourceChanges` - per-provider resource list.
11//! - `ExecuteSCMCommand` - commit / push / pull dispatch (stub).
12//! - `GetSCMBranches` - branch picker data (stub).
13//! - `CheckoutSCMBranch` - switch working tree (stub).
14//! - `GetSCMCommitHistory` - Timeline-panel commit log (stub).
15//! - `StageSCMResource` - git add / unstage (stub).
16//!
17//! Errors propagate as `Result<Value, String>` for direct frontend
18//! display.
19//!
20//! VS Code reference:
21//! `vs/workbench/contrib/scm/common/scm.ts`,
22//! `vs/workbench/contrib/scm/browser/scmView.ts`,
23//! `vs/workbench/services/scm/common/scmService.ts`.
24//!
25//! ## Planned Work
26//!
27//! - Route every stub through the trait for progress reporting, cancellation,
28//!   and proper error surfacing
29//! - Stash / merge / rebase operations
30//! - Multi-provider concurrency
31//! - Diff viewing and resource decoration
32//! - SCM input-box interactions
33
34pub mod CheckoutSCMBranch;
35
36pub mod ExecuteSCMCommand;
37
38pub mod GetAllSourceControlManagementState;
39
40pub mod GetSCMBranches;
41
42pub mod GetSCMCommitHistory;
43
44pub mod GetSCMResourceChanges;
45
46pub mod StageSCMResource;