Re: Bug report: ":/[text]" revision reference no longer returns youngest commit
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 15, 2024, 17:43 UTC
- Message-ID
- <xmqqzfkw970k.fsf@gitster.g>
- In-Reply-To
- <CADFnu5sMEvGyGy7xH1r0NGBUZJBznCi0waJ_bJ3tSHQ5Y2yX1Q@mail.gmail.com>
Oliver Blanthorn <freedom4cows@gmail.com> writes:
Show 15 quoted lines
> What did you do before the bug happened? (Steps to reproduce your issue) > > `git show :/Merge` in git's git repo > > > > What did you expect to happen? (Expected behavior) > > The most recent commit matching the text "Merge" should have appeared > > > > What happened instead? (Actual behavior) > > A commit from 19 years ago appeared
Thanks for a well written report. I think this is the same breakage reported in *1*, which was fixed with *2*. Hopefully the fix will be part of the upcoming Git 2.48, scheduled soon after the new year.
[References]
*1* https://lore.kernel.org/git/CAKOEJdcPYn3O01p29rVa+xv=Qr504FQyKJeSB-Moze04ViCGGg@mail.gmail.com/
*2* https://lore.kernel.org/git/20241206-pks-rev-parse-fix-reversed-list-v3-1-d934c17db168@pks.im