pub fn decide_require_root(
arguments: &[OsString],
wrapper_flags: &[&[u8]],
) -> RequireRootDecisionExpand 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;