Skip to main content

list_stashes

Function list_stashes 

Source
pub fn list_stashes(_path: &Path) -> Result<Vec<(usize, String)>>
Expand description

Lists all stashes in the git repository.

§Parameters

  • path: The path to the git repository.

§Returns

  • Ok(Vec<(usize, String)>) with a list of stash indices and their messages.
  • Err(Error) if an error occurred while listing stashes.