pub fn parse_branch_creation_region(
command: BranchCreationCommand,
region: &[OsString],
wrapper_flags: &[&[u8]],
) -> Result<BranchCreationRegion, OptionError>Expand description
What:
Parse the region after a guarded subcommand.
Result<A, B> is “either success A
or failure B”.
Why:
A region Git itself would refuse yields the refusal;
Git then creates nothing.
In TS you’d write (pseudocode):
function parseBranchCreationRegion({ subcommand, postSubcommandArgs }): BranchCreationRegion; // throws