Re: [feature request] stash diff usability
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Feb 16, 2026, 01:05 UTC
- Message-ID
- <CAPig+cRpiOqDGouEQG2MUnYXNSMLKGcqBTBWgqQKYxL7fdN7QA@mail.gmail.com>
- In-Reply-To
- <CAMh=C_0ravwVS6UsKKux8PTewd7Z=db4bgvisMXnPwKU-Kyytg@mail.gmail.com>
On Sun, Feb 15, 2026 at 7:57 PM Pierre Houston <jpmhouston@gmail.com> wrote:
> I can't recall wanting to get, from the command line, the contents of
> a stash as a diff in the past. I thought there was maybe an option to
> `git stash show` , boy was I wrong: `git diff 'stash@{0}^'
> 'stash@{0}'`. This seems rather user hostile.What you probably want is `git stash show -p`, which is documented indirectly as "<diff-option>" in the git-stash man page for the "show" subcommand.