Skip to main content

decide_require_root

Function decide_require_root 

Source
pub fn decide_require_root(
    arguments: &[OsString],
    wrapper_flags: &[&[u8]],
) -> RequireRootDecision
Expand description

What: Decide from the argument list whether the command is exempt. wrapper_flags are the caller’s wrapper-only spellings, which Git must not see as unknown options. Why: An exempt command is forwarded without touching the filesystem.

In TS you’d write (pseudocode):

function decideRequireRoot(args: string[], wrapperFlags: string[]): RequireRootDecision;