Skip to main content

stash

Function stash 

Source
pub fn stash(_path: &Path, _message: Option<&str>) -> Result<()>
Expand description

Stashes current changes in the git repository.

§Parameters

  • path: The path to the git repository.
  • message: Optional stash message.

§Returns

  • Ok(()) if the stash was successful.
  • Err(Error) if an error occurred during stashing.