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

Re: Bug in 'git log --remerge-diff' when used with '--find-object' and '--submodule=log|diff'

From
Elijah Newren <newren@gmail.com>
Date
Aug 31, 2022, 07:37 UTC
Message-ID
<CABPp-BGxPTz3tZtjGNH1MAVCKtHpjYzNVwtmux5WzuMXWphV5A@mail.gmail.com>
In-Reply-To
<CABPp-BGxN=9f4ODeRsX5TMuKRujCuhmRxCm4br43HNqm3Vmanw@mail.gmail.com>
On Mon, Aug 29, 2022 at 7:51 PM Elijah Newren <newren@gmail.com> wrote:
Show 16 quoted lines
>
> On Mon, Aug 29, 2022 at 9:36 AM Philippe Blain
> <levraiphilippeblain@gmail.com> wrote:
> >
> > Hi Elijah,
> >
> > Le 2022-08-24 à 03:36, Elijah Newren a écrit :
> > > Hi Philippe,
> > >
> > > On Mon, Aug 22, 2022 at 4:58 PM Philippe Blain
> > > <levraiphilippeblain@gmail.com> wrote:
> > >>
> > >> Hi Elijah,
> > >>
> > >> I found two bugs in '--remerge-diff' when combined with both '--find-object' and
> > >> '--submodule=log|diff'. I don't know if they have the same cause.
[...]
> > >> This artificial example reproduces the bug:
[...]
> > > Thanks for the report, and the steps to reproduce.  Very helpful.
> > >
> > > After some digging, it appears the remerge-diff headers are
> > > misinterpreted by the submodule code.
[...]
Show 7 quoted lines
> >
> > Thanks for digging into this.
> > From what I understand in the case of a remerge-diff, both modes are all-zero, and this is
> > not expected by the submodule diff code. Were you planning to submit a proper
> > patch ? I could get to it eventually, but not before mid/end of September...
>
> I intend to submit a proper patch; I've just been busy.

I have some patches that I think fix all the --remerge-diff issues; see https://lore.kernel.org/git/pull.1342.git.1661926908.gitgitgadget@gmail.com/

I looked briefly at the same issue affecting --cc and -c, but only enough to find it appears to have a different codepath and I don't see any obvious similar fixes for it.

Previous: Elijah Newren
Message 5 of 5 in “Bug in 'git log --remerge-diff' when used with '--find-object' and '--submodule=log|diff'”
  1. Philippe BlainAug 22, 2022
  2. Elijah NewrenAug 24, 2022
  3. Philippe BlainAug 29, 2022
  4. Elijah NewrenAug 30, 2022
  5. Elijah NewrenAug 31, 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.