class Git::Commands::Stash::Apply

Apply stashed changes to the working directory

Applies the changes recorded in a stash to the working tree. Unlike {Pop}, this does not remove the stash from the stash list.

@example Apply the latest stash

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

@example Apply a specific stash

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

@example Apply and restore index state

Git::Commands::Stash::Apply.new(execution_context).call(index: 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