Skip to main content

resolve_require_root

Function resolve_require_root 

Source
pub fn resolve_require_root(facts: &RequireRootFacts) -> RequireRootVerdict
Expand description

What: Decide from the measured paths whether to forward or reject. &RequireRootFacts borrows the measurements read-only. Why: Outside a repository Git reports its own error if the subcommand needs one. Gotcha: Paths compare by components, so /repo/ and /repo are the same directory; symbolic links are the caller’s concern.

In TS you’d write (pseudocode):

function resolveRequireRoot(facts: RequireRootFacts): RequireRootVerdict;