(self, git_chain: &GitChain)
| 308 | } |
| 309 | |
| 310 | pub fn delete(self, git_chain: &GitChain) -> Result<Vec<String>, Error> { |
| 311 | let mut deleted_branches: Vec<String> = vec![]; |
| 312 | for branch in self.branches { |
| 313 | deleted_branches.push(branch.branch_name.clone()); |
| 314 | branch.remove_from_chain(git_chain)?; |
| 315 | } |
| 316 | |
| 317 | Ok(deleted_branches) |
| 318 | } |
| 319 | |
| 320 | pub fn backup(&self, git_chain: &GitChain) -> Result<(), Error> { |
| 321 | for branch in &self.branches { |
no test coverage detected