class Git::Commands::Stash::Pop

Apply stashed changes and remove from stash list

Like {Apply}, but removes the stash from the stash list after applying, unless there are conflicts.

@example Pop the latest stash

Git::Commands::Stash::Pop.new(execution_context).call

@example Pop a specific stash

Git::Commands::Stash::Pop.new(execution_context).call('stash@\\{2}')

@example Pop and restore index state

Git::Commands::Stash::Pop.new(execution_context).call(index: true)

@example Pop quietly

Git::Commands::Stash::Pop.new(execution_context).call(quiet: true)

@note โ€˜arguments` block audited against git-scm.com/docs/git-stash/2.53.0

@see Git::Commands::Stash Git::Commands::Stash for usage examples

@see git-scm.com/docs/git-stash git-stash documentation

@api private