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

Method git

atomic-repository/src/change_source/fsmonitor.rs:43–50  ·  view source on GitHub ↗
(&self, root: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

41 }
42
43 fn git(&self, root: &Path, args: &[&str]) -> Result<CommandOutput, ChangeSourceError> {
44 let mut spec = CommandSpec::new("git", root);
45 spec.args = args.iter().map(|arg| (*arg).to_owned()).collect();
46 spec.env.insert("GIT_OPTIONAL_LOCKS".into(), "0".into());
47 spec.timeout = self.timeout;
48 spec.max_output_bytes = self.max_candidates.saturating_mul(4096).max(64 * 1024);
49 self.runner.run(&spec)
50 }
51
52 fn ensure_available(&self, root: &Path) -> Result<(), ChangeSourceError> {
53 let output = self.git(root, &["--version"])?;

Callers 2

ensure_availableMethod · 0.45
changesMethod · 0.45

Calls 4

collectMethod · 0.45
iterMethod · 0.45
insertMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected