Skip to main content

run_git

Function run_git 

Source
pub fn run_git(args: &[&str], cwd: &Path) -> GitOutput
Expand description

Synchronously invoke git with args in cwd, returning its status and raw output. A failure to spawn git is not an error here: it yields status: None with the spawn error surfaced into stderr, so callers can handle it alongside git’s own failures.