MCPcopy Create free account
hub / github.com/concensure/Semantic / commit

Method commit

refactor_graph/src/lib.rs:270–277  ·  view source on GitHub ↗
(&mut self, refactor_id: &str)

Source from the content-addressed store, hash-verified

268 }
269
270 pub fn commit(&mut self, refactor_id: &str) -> Result<()> {
271 let snapshot_root = self.repo_root.join(SNAPSHOT_DIR).join(refactor_id);
272 if snapshot_root.exists() {
273 fs::remove_dir_all(snapshot_root)?;
274 }
275 self.snapshots.remove(refactor_id);
276 Ok(())
277 }
278
279 pub fn rollback(&mut self, refactor_id: &str) -> Result<()> {
280 let snapshot_root = self.repo_root.join(SNAPSHOT_DIR).join(refactor_id);

Callers 4

execute_refactorFunction · 0.80
rebuildMethod · 0.80
insert_symbolsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected