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

Method checkpoint_head

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

Source from the content-addressed store, hash-verified

180 }
181
182 fn checkpoint_head(&self) -> String {
183 let bytes = fs::read_to_string(self.root().join(".atomic/bridge/workspace.json"))
184 .expect("checkpoint");
185 serde_json::from_str::<serde_json::Value>(&bytes).expect("checkpoint json")["git_head"]
186 .as_str()
187 .expect("head")
188 .to_string()
189 }
190
191 fn wip_refs(&self) -> Vec<String> {
192 git(

Calls 2

rootMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected