List all stash views, sorted by creation time (newest first).
(&self, repo: &Repository)
| 243 | |
| 244 | /// List all stash views, sorted by creation time (newest first). |
| 245 | fn list_stashes(&self, repo: &Repository) -> CliResult<Vec<StashEntry>> { |
| 246 | repo.stash_list() |
| 247 | .map_err(|message| CliError::Internal(anyhow::anyhow!(message))) |
| 248 | } |
| 249 | |
| 250 | /// Parse a stash reference (e.g., "stash@{0}", "0", or view name). |
| 251 | fn parse_stash_ref(&self, repo: &Repository, reference: Option<&str>) -> CliResult<StashEntry> { |
no test coverage detected