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

Method run_apply

atomic-cli/src/commands/stash.rs:327–335  ·  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

325
326 /// Execute stash apply (apply without deleting).
327 fn run_apply(&self, repo: &mut Repository, stash_ref: Option<&str>) -> CliResult<()> {
328 let stash = self.parse_stash_ref(repo, stash_ref)?;
329 self.apply_stash(repo, &stash)?;
330 print_hint(&format!(
331 "Stash {} still exists. Use 'atomic stash drop' to remove it.",
332 stash.reference()
333 ));
334 Ok(())
335 }
336
337 /// Apply a stash to the current working copy: the sidecar bytes are
338 /// copied back to disk (a pure filesystem operation — no graph

Callers 1

runMethod · 0.80

Calls 3

print_hintFunction · 0.85
parse_stash_refMethod · 0.80
apply_stashMethod · 0.45

Tested by

no test coverage detected