# [feature request] stash diff usability

3 messages from 2026-02-16 to 2026-02-16. Participants: Pierre Houston, Eric Sunshine.
Thread: https://gitlist.dev/t/65004

## Pierre Houston, 2026-02-16 00:56

Subject: [feature request] stash diff usability
Message-ID: <CAMh=C_0ravwVS6UsKKux8PTewd7Z=db4bgvisMXnPwKU-Kyytg@mail.gmail.com>
URL: https://gitlist.dev/e/CAMh%3DC_0ravwVS6UsKKux8PTewd7Z%3Ddb4bgvisMXnPwKU-Kyytg%40mail.gmail.com

```
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.

I see the request to get the "!" syntax working, this would be an
improvement, However, I'd like to see the command `git stash diff
[stashname]` to be a shorthand for the above, and of course defaulting
to the most recent stash.

My apologies if this matches an old, previously rejected suggestion.
Searching the mailing list exhaustively takes some skill I haven't
acquired.

```

## Eric Sunshine, 2026-02-16 01:05

Subject: Re: [feature request] stash diff usability
Message-ID: <CAPig+cRpiOqDGouEQG2MUnYXNSMLKGcqBTBWgqQKYxL7fdN7QA@mail.gmail.com>
URL: https://gitlist.dev/e/CAPig%2BcRpiOqDGouEQG2MUnYXNSMLKGcqBTBWgqQKYxL7fdN7QA%40mail.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.

```

## Eric Sunshine, 2026-02-16 07:07

Subject: Re: [feature request] stash diff usability
Message-ID: <CAPig+cRYfK6fq16aiZaBJBd4LipJYS0HPznuTXqB86Y2Z+BVjQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAPig%2BcRYfK6fq16aiZaBJBd4LipJYS0HPznuTXqB86Y2Z%2BBVjQ%40mail.gmail.com
In-Reply-To: <CAMh=C_2jBkukEkAgViSFi6+c_kQeU-1YN06FyCxWX9grDPujuQ@mail.gmail.com>

```
On Sun, Feb 15, 2026 at 8:20 PM Pierre Houston <jpmhouston@gmail.com> wrote:
> Ok, egg on my face, thanks. I should have looked in more places for that option.

No egg intended. By saying that it is documented only *indirectly*, I
meant that it is not necessarily easy to discover.

> I would like to see a long spelling of that option with “--“ for better discoverability.

A patch to the git-stash documentation to mention this useful option
more explicitly might be welcome, if you want to give it a shot. In
fact, it might be a good idea to call out --patch for both the
git-stash "show" and "list" commands.

```
