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

Method list_stashes

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

List all stash views, sorted by creation time (newest first).

(&self, repo: &Repository)

Source from the content-addressed store, hash-verified

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> {

Callers 4

run_listMethod · 0.45
stash_popFunction · 0.45
stash_listFunction · 0.45
list_stashes_rawFunction · 0.45

Calls 1

stash_listMethod · 0.80

Tested by

no test coverage detected