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

Method run_drop

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

Execute stash drop.

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

Source from the content-addressed store, hash-verified

403
404 /// Execute stash drop.
405 fn run_drop(&self, repo: &mut Repository, stash_ref: Option<&str>) -> CliResult<()> {
406 let stash = repo
407 .stash_drop(stash_ref)
408 .map_err(|message| CliError::InvalidArgument { message })?;
409 print_success(&format!("Dropped {}", stash.reference()));
410 Ok(())
411 }
412
413 /// Execute stash clear.
414 fn run_clear(&self, repo: &mut Repository, force: bool) -> CliResult<()> {

Callers 1

runMethod · 0.80

Calls 2

print_successFunction · 0.85
stash_dropMethod · 0.80

Tested by

no test coverage detected