Function clean_stashes
Source pub fn clean_stashes(path: impl AsRef<Path>) -> Result<usize, GitOpsError>
Expand description
Clear all git stashes in the repository.
Runs git stash clear to remove all stash entries. This is useful for
cleaning up temporary state during landing.
§Arguments
path - Path to the git repository (or worktree)
§Returns
The number of stashes that were cleared (0 if none existed).