Execute stash drop.
(&self, repo: &mut Repository, stash_ref: Option<&str>)
| 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<()> { |
no test coverage detected