git/list[1] front-page[2] threads[3] people[4] search[5] about
 

AW: git diff ^! syntax stopped working for stashes in Git 2.28

From
TJTim Jaacks <tim.jaacks@garz-fricke.com>
Date
Sep 28, 2022, 09:02 UTC
Message-ID
<15f30d59650b4de2b14d89f6e8cb21ce@garz-fricke.com>
In-Reply-To
<70e87095-d8be-f859-f5b4-a5e15904149c@web.de>
Hey Chris, hey René,
thanks a lot for your replys.
> So, Tim, does `git stash show -p stash@{0}` work for you?
Yes, that works indeed. However, in my certain use-case I would prefer using `git diff`.
 
> Letting `git diff X^!` mean the same as `git diff X ^X^` for a non-merge
> makes sense to me given the definition from gitrevisions(7) cited above.
> That in turn is the same as `git diff X^..X` and `git diff X^ X`.
Yes, that is exactly how it worked before. And all the other syntaxes still work correctly.
René, I saw you submitted some patches already, but these weren't approved obviously. So how does this continue now?

Kind regards, Tim

-- 
Tim Jaacks
SOFTWARE DEVELOPER
SECO Northern Europe GmbH

Schlachthofstrasse 20
21079 Hamburg
Germany
T: +49  40 791899-183
E: tim.jaacks@seco.com

Registergericht:  Amtsgericht Hamburg, HRB 148893
Geschäftsführer: Stefan Heczko, Marc-Michael Braun, Massimo Mauri     
Previous: René ScharfeNext: René Scharfe
Message 5 of 6 in “git diff ^! syntax stopped working for stashes in Git 2.28”
  1. Tim JaacksSep 12, 2022
  2. René ScharfeSep 12, 2022
  3. Chris TorekSep 12, 2022
  4. René ScharfeSep 14, 2022
  5. AW: git diff ^! syntax stopped working for stashes in Git 2.28Tim Jaacks, Sep 28, 2022
  6. René ScharfeSep 28, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.