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

Method push

src/chain.rs:327–335  ·  view source on GitHub ↗
(&self, git_chain: &GitChain, force_push: bool)

Source from the content-addressed store, hash-verified

325 }
326
327 pub fn push(&self, git_chain: &GitChain, force_push: bool) -> Result<usize, Error> {
328 let mut num_of_pushes = 0;
329 for branch in &self.branches {
330 if branch.push(git_chain, force_push)? {
331 num_of_pushes += 1;
332 }
333 }
334 Ok(num_of_pushes)
335 }
336
337 pub fn prune(&self, git_chain: &GitChain, dry_run: bool) -> Result<Vec<String>, Error> {
338 let mut pruned_branches = vec![];

Callers 5

runFunction · 0.45
merge_conflictMethod · 0.45
deleteMethod · 0.45
pruneMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected