Skip to main content

check_git_version

Function check_git_version 

Source
pub fn check_git_version(
    context: &GitContext,
) -> Result<(u64, u64, u64), String>
Expand description

What: Require a supported Git, asking at most once per process. Why: The check costs a Git process, so later dependent steps reuse the answer.

In TS you’d write (pseudocode):

await requireSupportedGit({ gitPath });