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

Method tip

atomic-cli/tests/it/git_shim_cb10a_test.rs:143–149  ·  view source on GitHub ↗
(&self, reference: &str)

Source from the content-addressed store, hash-verified

141 }
142
143 fn tip(&self, reference: &str) -> Option<Oid> {
144 let repository = GitRepository::open(self.root()).expect("git repo");
145 repository
146 .find_reference(reference)
147 .ok()
148 .and_then(|reference| reference.target())
149 }
150
151 #[allow(dead_code)]
152 fn status_text(&self) -> String {

Calls 3

openFunction · 0.85
rootMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected