{"thread":{"id":"65004","subject":"[feature request] stash diff usability","startedAt":"2026-02-16T00:57:04Z","lastAt":"2026-02-16T07:07:33Z","messageCount":3,"participants":["Pierre Houston","Eric Sunshine"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"536078","messageId":"CAMh=C_0ravwVS6UsKKux8PTewd7Z=db4bgvisMXnPwKU-Kyytg@mail.gmail.com","threadId":"65004","inReplyTo":null,"subject":"[feature request] stash diff usability","fromName":"Pierre Houston","fromEmail":"jpmhouston@gmail.com","sentAt":"2026-02-16T00:56:52Z","receivedAt":"2026-02-16T00:57:04Z","isPatch":false,"sender":{"key":"jpmhouston@gmail.com","avatar":null},"body":"I can't recall wanting to get, from the command line, the contents of\na stash as a diff in the past. I thought there was maybe an option to\n`git stash show` , boy was I wrong: `git diff 'stash@{0}^'\n'stash@{0}'`. This seems rather user hostile.\n\nI see the request to get the \"!\" syntax working, this would be an\nimprovement, However, I'd like to see the command `git stash diff\n[stashname]` to be a shorthand for the above, and of course defaulting\nto the most recent stash.\n\nMy apologies if this matches an old, previously rejected suggestion.\nSearching the mailing list exhaustively takes some skill I haven't\nacquired.\n"},{"id":"536079","messageId":"CAPig+cRpiOqDGouEQG2MUnYXNSMLKGcqBTBWgqQKYxL7fdN7QA@mail.gmail.com","threadId":"65004","inReplyTo":"CAMh=C_0ravwVS6UsKKux8PTewd7Z=db4bgvisMXnPwKU-Kyytg@mail.gmail.com","subject":"Re: [feature request] stash diff usability","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2026-02-16T01:05:36Z","receivedAt":"2026-02-16T01:05:49Z","isPatch":false,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"On Sun, Feb 15, 2026 at 7:57 PM Pierre Houston <jpmhouston@gmail.com> wrote:\n> I can't recall wanting to get, from the command line, the contents of\n> a stash as a diff in the past. I thought there was maybe an option to\n> `git stash show` , boy was I wrong: `git diff 'stash@{0}^'\n> 'stash@{0}'`. This seems rather user hostile.\n\nWhat you probably want is `git stash show -p`, which is documented\nindirectly as \"<diff-option>\" in the git-stash man page for the \"show\"\nsubcommand.\n"},{"id":"536090","messageId":"CAPig+cRYfK6fq16aiZaBJBd4LipJYS0HPznuTXqB86Y2Z+BVjQ@mail.gmail.com","threadId":"65004","inReplyTo":"CAMh=C_2jBkukEkAgViSFi6+c_kQeU-1YN06FyCxWX9grDPujuQ@mail.gmail.com","subject":"Re: [feature request] stash diff usability","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2026-02-16T07:07:21Z","receivedAt":"2026-02-16T07:07:33Z","isPatch":false,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"On Sun, Feb 15, 2026 at 8:20 PM Pierre Houston <jpmhouston@gmail.com> wrote:\n> Ok, egg on my face, thanks. I should have looked in more places for that option.\n\nNo egg intended. By saying that it is documented only *indirectly*, I\nmeant that it is not necessarily easy to discover.\n\n> I would like to see a long spelling of that option with “--“ for better discoverability.\n\nA patch to the git-stash documentation to mention this useful option\nmore explicitly might be welcome, if you want to give it a shot. In\nfact, it might be a good idea to call out --patch for both the\ngit-stash \"show\" and \"list\" commands.\n"}]}