Skip to main content

plan_management

Function plan_management 

Source
pub fn plan_management(
    arguments: &[OsString],
    git_global_arguments: &[OsString],
    controls: &Controls,
    environment: &[(OsString, OsString)],
    inputs: &ResolutionInputs,
) -> Action
Expand description

What: Decide the action for the arguments after git cli-git. &[OsString] borrows argument lists; &Controls borrows what the wrapper controls written before cli-git asked for; &ResolutionInputs borrows process facts. Why: Help, refusals and retired commands answer without resolving Git or reading any repository. A direct command validates its selection, asks Git once where it runs, refuses beside commit transactions it cannot recover, loads that worktree’s configuration and runs one policy pass.

In TS you’d write (pseudocode):

function planManagement(args, gitGlobalArgs, controls, environment, inputs): Action;