Skip to main content

is_git_available

Function is_git_available 

Source
pub fn is_git_available() -> bool
Expand description

Check whether the git binary is available on PATH.

Probes git --version once per process and caches the result. Returns false only when the OS reports the binary doesn’t exist (io::ErrorKind::NotFound). A git that spawns but exits non-zero still counts as “available” so legitimate git errors propagate normally.