MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / git

Function git

tests/core_cli_suite/cli_non_interactive_test.rs:119–132  ·  view source on GitHub ↗
(project: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

117}
118
119fn git(project: &Path, args: &[&str]) {
120 let output = Command::new("git")
121 .args(["-c", "core.hooksPath=.git/no-hooks"])
122 .args(args)
123 .current_dir(project)
124 .output()
125 .unwrap_or_else(|e| panic!("failed to run git {args:?}: {e}"));
126 assert!(
127 output.status.success(),
128 "git {args:?} failed\nstdout:\n{}\nstderr:\n{}",
129 String::from_utf8_lossy(&output.stdout),
130 String::from_utf8_lossy(&output.stderr)
131 );
132}
133
134fn commit_all(project: &Path, message: &str) {
135 git(project, &["add", "."]);

Calls 1

outputMethod · 0.80

Tested by

no test coverage detected