Skip to main content

parse_push_region

Function parse_push_region 

Source
pub fn parse_push_region(
    region: &[OsString],
    wrapper_flags: &[&[u8]],
) -> Result<PushRegion, OptionError>
Expand description

What: Parse the region after push. Result<A, B> is “either success A or failure B”. Why: A region Git itself would refuse yields the refusal, never a guessed fact set.

In TS you’d write (pseudocode):

function parsePushRegion(region: string[], wrapperFlags: string[]): PushRegion; // throws