MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / is_git_installed

Function is_git_installed

crates/chat-cli/src/cli/chat/checkpoint.rs:384–390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

382pub const CHECKPOINT_MESSAGE_MAX_LENGTH: usize = 60;
383
384fn is_git_installed() -> bool {
385 Command::new("git")
386 .arg("--version")
387 .output()
388 .map(|o| o.status.success())
389 .unwrap_or(false)
390}
391
392fn is_in_git_repo() -> bool {
393 Command::new("git")

Callers 1

auto_initMethod · 0.85

Calls 3

mapMethod · 0.80
outputMethod · 0.80
successMethod · 0.45

Tested by

no test coverage detected