Skip to main content

Module SCM

Module SCM 

Source
Expand description

Source-control-management domain handlers for CocoonService. RegisterScmProvider::Fn, UpdateScmGroup::Fn, GitExec::Fn.

Modules§

GitExec
Spawn git with the requested args inside repository_path (or cwd if unset). stdout lines are returned verbatim; stderr lines are prefixed with stderr: so the extension can differentiate.
RegisterScmProvider
Register a Cocoon SCM provider in ApplicationState AND route through the SourceControlManagementProvider trait so SCM state is materialised in ApplicationState::SourceControl (the surface Sky’s SCM view binds to). The prior direct Sky emit bypassed state tracking - providers registered by gitlens/svn/etc. never appeared in the SCM view until a UpdateScmGroup call landed.
UpdateScmGroup
Update a registered SCM provider’s resource-state group via the trait (which mutates state and emits the deduplicated UI event). Falls back to a direct Sky emit if the trait wiring is unavailable.