class Git::Commands::Stash::Show

Show the changes recorded in a stash entry as a diff

Shows the changes recorded in the stash entry as a diff between the stashed contents and the commit back when the stash entry was first created.

@example Show numstat for the latest stash

Git::Commands::Stash::Show.new(ctx).call(numstat: true, shortstat: true)

@example Show patch for a specific stash

Git::Commands::Stash::Show.new(ctx).call('stash@{2}', patch: true, numstat: true, shortstat: true)

@example Show with directory statistics

Git::Commands::Stash::Show.new(ctx).call(numstat: true, shortstat: true, dirstat: true)
Git::Commands::Stash::Show.new(ctx).call(numstat: true, shortstat: true, dirstat: 'lines,cumulative')

@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