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

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
Previous: Junio C Hamano
Message 4 of 4 in “Bug report: ":/[text]" revision reference no longer returns youngest commit”
  1. Oliver BlanthornDec 15, 2024
  2. Kristoffer HaugsbakkDec 15, 2024
  3. Junio C HamanoDec 15, 2024
  4. Junio C HamanoDec 15, 2024

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.