MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / git_run

Function git_run

crates/opencode-cli/src/main.rs:4822–4832  ·  view source on GitHub ↗
(args: &[&str])

Source from the content-addressed store, hash-verified

4820}
4821
4822fn git_run(args: &[&str]) -> anyhow::Result<()> {
4823 let output = ProcessCommand::new("git")
4824 .args(args)
4825 .output()
4826 .map_err(|e| anyhow::anyhow!("Failed to run git {:?}: {}", args, e))?;
4827 if !output.status.success() {
4828 let stderr = String::from_utf8_lossy(&output.stderr).trim().to_string();
4829 anyhow::bail!("git {:?} failed: {}", args, stderr);
4830 }
4831 Ok(())
4832}
4833
4834fn git_output(args: &[&str]) -> anyhow::Result<String> {
4835 let output = ProcessCommand::new("git")

Callers 5

github_commit_allFunction · 0.85
github_push_new_branchFunction · 0.85
github_push_to_forkFunction · 0.85

Calls 3

newFunction · 0.85
outputMethod · 0.80
successMethod · 0.45

Tested by

no test coverage detected