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

Method wip_ref_values

atomic-cli/tests/it/git_adoption_cb7b_test.rs:202–217  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

200
201 #[allow(dead_code)]
202 fn wip_ref_values(&self) -> Vec<(String, String)> {
203 git(
204 self.root(),
205 &[
206 "for-each-ref",
207 "--format=%(refname) %(objectname)",
208 "refs/atomic/wip/**",
209 ],
210 )
211 .lines()
212 .map(|line| {
213 let (name, oid) = line.split_once(' ').expect("refname and objectname");
214 (name.to_string(), oid.to_string())
215 })
216 .collect()
217 }
218
219 /// Which adoption branch ran, from the journaled operation actors.
220 fn adoption_actors(&self) -> String {

Calls 4

gitFunction · 0.70
collectMethod · 0.45
linesMethod · 0.45
rootMethod · 0.45

Tested by

no test coverage detected