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

Method checkpoint_view

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

Source from the content-addressed store, hash-verified

171 }
172
173 fn checkpoint_view(&self) -> String {
174 let bytes = fs::read_to_string(self.root().join(".atomic/bridge/workspace.json"))
175 .expect("checkpoint");
176 serde_json::from_str::<serde_json::Value>(&bytes).expect("checkpoint json")["view"]
177 .as_str()
178 .expect("view")
179 .to_string()
180 }
181
182 fn checkpoint_head(&self) -> String {
183 let bytes = fs::read_to_string(self.root().join(".atomic/bridge/workspace.json"))

Calls 2

rootMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected