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

Re: Bug report - Apple git

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 14, 2025, 22:43 UTC
Message-ID
<xmqqv7uh10fk.fsf@gitster.g>
In-Reply-To
<CALnO6CD35K9O=Wgotij1SiY=N50WiCODY5i-_gBBcGgD73CPjw@mail.gmail.com>
"D. Ben Knoble" <ben.knoble@gmail.com> writes:
Show 7 quoted lines
>> What happened instead? (Actual behavior)
>> Didn't get a diff output. Got the following error instead:
>> "fatal: --merge-base only works with commits"
>> ...
> A shorter workaround is probably "git diff --merge-base
> <your-tag>^{commit} HEAD" (this is the "peeling" that Kristoffer
> references)
Thanks.  
    $ git log -S'only works with commits' ':!po/'

finds 4adceb5a (diff: fix --merge-base with annotated tags, 2023-10-01), which is v2.43.0-rc0~36^2 and v2.43 is from Nov 2023, so this seems to be a rather ancient bug that has been already fixed in our codebase.

The reason why I started writing this message is a bit offtopic (and that is why Jiang is CC'ed). We do still have that string in our "codebase" but in po/

    $ git grep -c 'only works with commits' po/
    po/es.po:1
    po/pl.po:1
    po/pt_PT.po:1
    po/ru.po:1

I suspect there may be other strings and translations that are no longer in use.

Are they something we can easily remove mechanically, and if so should we?

Thanks.
Previous: D. Ben KnobleNext: André de Castro
Message 5 of 6 in “Bug report - Apple git”
  1. André de CastroJan 13, 2025
  2. Kristoffer HaugsbakkJan 13, 2025
  3. Torsten BögershausenJan 13, 2025
  4. D. Ben KnobleJan 14, 2025
  5. Junio C HamanoJan 14, 2025
  6. André de CastroJan 13, 2025

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.