Execute stash pop (apply and delete).
(&self, repo: &mut Repository, stash_ref: Option<&str>)
| 533 | |
| 534 | /// Execute stash pop (apply and delete). |
| 535 | fn run_pop(&self, repo: &mut Repository, stash_ref: Option<&str>) -> CliResult<()> { |
| 536 | let stash = self.parse_stash_ref(repo, stash_ref)?; |
| 537 | |
| 538 | // Apply the stash |
| 539 | self.apply_stash(repo, &stash)?; |
| 540 | |
| 541 | // Delete the stash view |
| 542 | repo.delete_view(&stash.view_name) |
| 543 | .map_err(CliError::Repository)?; |
| 544 | |
| 545 | print_success(&format!("Dropped {}", stash.reference())); |
| 546 | |
| 547 | Ok(()) |
| 548 | } |
| 549 | |
| 550 | /// Execute stash apply (apply without deleting). |
| 551 | fn run_apply(&self, repo: &mut Repository, stash_ref: Option<&str>) -> CliResult<()> { |
no test coverage detected