MCPcopy Index your code
hub / github.com/AI45Lab/Code / is_git_available

Function is_git_available

core/src/git.rs:14–20  ·  view source on GitHub ↗

Check if git is available on the system.

()

Source from the content-addressed store, hash-verified

12
13/// Check if git is available on the system.
14pub fn is_git_available() -> bool {
15 Command::new("git")
16 .arg("--version")
17 .output()
18 .map(|o| o.status.success())
19 .unwrap_or(false)
20}
21
22/// Get the git installation directory in user's home.
23fn git_install_dir() -> PathBuf {

Callers 1

ensure_git_installedFunction · 0.85

Calls 1

successMethod · 0.45

Tested by

no test coverage detected