(&mut self, refactor_id: &str)
| 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); |
no outgoing calls
no test coverage detected