From: Tim Jaacks <tim.jaacks@garz-fricke.com>
To: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: git diff ^! syntax stopped working for stashes in Git 2.28
Date: Mon, 12 Sep 2022 09:57:13 +0000 [thread overview]
Message-ID: <6f729c8c43c4409faf6a11a69791f45a@garz-fricke.com> (raw)
Hello,
I noticed that the following syntax to show the changes of a stash stopped working in Git 2.28:
git diff stash@{0}^!
It still works on commits and HEAD, though:
git diff f27984d^!
git diff HEAD^!
And diffing against the stash's parent works as well:
git diff stash@{0}^1 stash@{0}
I assume this is a bug. Can anybody confirm this? I verified the behavior change trying different Git versions via docker:
docker run -it --rm --user $(id -u):$(id -g) -v $HOME:$HOME:rw -v /etc/passwd:/etc/passwd:ro -v /etc/group:/etc/group:ro -v $PWD:$PWD:rw -w $PWD bitnami/git:2.27.0 diff stash@{0}^!
With v2.27.0 the above syntax works, with v2.28.0 and later it doesn't.
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
Register: Amtsgericht Hamburg, HRB 148893
Represented by: Dirk Finstel, Marc-Michael Braun, Massimo Mauri
next reply other threads:[~2022-09-12 10:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-12 9:57 Tim Jaacks [this message]
2022-09-12 11:16 ` git diff ^! syntax stopped working for stashes in Git 2.28 René Scharfe
2022-09-12 19:09 ` Chris Torek
2022-09-14 15:57 ` René Scharfe
2022-09-28 9:02 ` AW: " Tim Jaacks
2022-09-28 17:39 ` René Scharfe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6f729c8c43c4409faf6a11a69791f45a@garz-fricke.com \
--to=tim.jaacks@garz-fricke.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).