MCPcopy Create free account
hub / github.com/dashed/git-chain / delete

Method delete

src/chain.rs:310–318  ·  view source on GitHub ↗
(self, git_chain: &GitChain)

Source from the content-addressed store, hash-verified

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 {

Callers 2

runFunction · 0.80
delete_local_branchFunction · 0.80

Calls 2

remove_from_chainMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected