MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / run_apply

Method run_apply

atomic-cli/src/commands/stash.rs:551–559  ·  view source on GitHub ↗

Execute stash apply (apply without deleting).

(&self, repo: &mut Repository, stash_ref: Option<&str>)

Source from the content-addressed store, hash-verified

549
550 /// Execute stash apply (apply without deleting).
551 fn run_apply(&self, repo: &mut Repository, stash_ref: Option<&str>) -> CliResult<()> {
552 let stash = self.parse_stash_ref(repo, stash_ref)?;
553 self.apply_stash(repo, &stash)?;
554 print_hint(&format!(
555 "Stash {} still exists. Use 'atomic stash drop' to remove it.",
556 stash.reference()
557 ));
558 Ok(())
559 }
560
561 /// Apply a stash to the current working copy.
562 ///

Callers 1

runMethod · 0.80

Calls 3

print_hintFunction · 0.85
parse_stash_refMethod · 0.80
apply_stashMethod · 0.80

Tested by

no test coverage detected