MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / git

Function git

atomic-cli/tests/it/git_wip_cb0b_test.rs:17–24  ·  view source on GitHub ↗
(root: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

15const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic");
16
17fn git(root: &Path, args: &[&str]) -> Output {
18 Command::new("git")
19 .arg("-C")
20 .arg(root)
21 .args(args)
22 .output()
23 .expect("run git")
24}
25
26fn git_ok(root: &Path, args: &[&str]) -> Vec<u8> {
27 let output = git(root, args);

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected