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

Method git

atomic-cli/tests/it/git_shim_cb10a_test.rs:130–141  ·  view source on GitHub ↗
(&self, args: &[&str])

Source from the content-addressed store, hash-verified

128 }
129
130 fn git(&self, args: &[&str]) -> String {
131 let output = git(self.root(), args);
132 assert!(
133 output.status.success(),
134 "git {args:?} failed: {}",
135 String::from_utf8_lossy(&output.stderr)
136 );
137 String::from_utf8(output.stdout)
138 .expect("utf8 git output")
139 .trim()
140 .to_string()
141 }
142
143 fn tip(&self, reference: &str) -> Option<Oid> {
144 let repository = GitRepository::open(self.root()).expect("git repo");

Calls 2

gitFunction · 0.70
rootMethod · 0.45

Tested by

no test coverage detected