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

Re: [PATCH] rerere: fix for merge.conflictstyle

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Apr 30, 2014, 06:49 UTC
Message-ID
<53609cee92532_4c3af672f0f4@nysa.notmuch>
In-Reply-To
<20140430060835.GA21698@sigill.intra.peff.net>
Jeff King wrote:
Show 7 quoted lines
> On Tue, Apr 29, 2014 at 11:08:29PM -0500, Felipe Contreras wrote:
> 
> > If we use a different conflict style `git rerere forget` is not able to
> > find the matching conflict SHA-1 because the diff generated is actually
> > different from what `git merge` generated.
> 
> Can you show an example or test case?

% git clone https://github.com/felipec/git % git config merge.conflictstyle diff3 % git checkout master % git merge --no-ff origin/fc/branch/nice-verbose % git merge --no-ff origin/fc/publish # fix conflicts as per -Xtheir strategy % git commit % git rerere forget builtin/branch.c error: no remembered resolution for builtin/branch.c

Show 7 quoted lines
> I could not reproduce the problem with a trivial case, and rerere
> specifically tries to handle the differences between "merge" and "diff3"
> styles by throwing away the base content between "|" and "=" lines.
> However, I wonder if it could still miss a match in some cases because
> the "merge" style uses XDL_MERGE_ZEALOUS, whereas diff3 bumps it
> down to XDL_MERGE_EAGER, which could lead to a slightly different
> preimage.
That's probably it.
-- 
Felipe Contreras
Previous: Jeff KingNext: Junio C Hamano
Message 3 of 4 in “rerere: fix for merge.conflictstyle”
  1. rerere: fix for merge.conflictstyleFelipe Contreras, Apr 30, 2014
  2. Jeff KingApr 30, 2014
  3. Felipe ContrerasApr 30, 2014
  4. Junio C HamanoApr 30, 2014

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.