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

Method tip

atomic-cli/tests/it/git_shim_cb13d_test.rs:334–340  ·  view source on GitHub ↗
(&self, reference: &str)

Source from the content-addressed store, hash-verified

332 }
333
334 fn tip(&self, reference: &str) -> Option<Oid> {
335 let repository = GitRepository::open(self.root()).expect("open git repo");
336 repository
337 .find_reference(reference)
338 .ok()
339 .and_then(|reference| reference.target())
340 }
341
342 /// Every ref with its tip, sorted — the ref-set identity of the repo.
343 fn refs_snapshot(&self) -> String {

Calls 3

openFunction · 0.85
rootMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected