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

Re: [PATCH] Fix for a merge where a branch has an F->D transition

From
Alex Riesen <raa.lkml@gmail.com>
Date
May 13, 2009, 11:33 UTC
Message-ID
<81b0412b0905130433x6aa780cbt61d99e9f3d0f2720@mail.gmail.com>
In-Reply-To
<alpine.DEB.1.00.0905131159180.5046@intel-tinevez-2-302>
2009/5/13 Johannes Schindelin <Johannes.Schindelin@gmx.de>:
Show 27 quoted lines
> On Wed, 13 May 2009, Alex Riesen wrote:
>> 2009/5/13 Junio C Hamano <gitster@pobox.com>:
>> > Alex Riesen <raa.lkml@gmail.com> writes:
>> >> Frankly, I'm not really sure. The solution came largely ... empirical
>> >> way. IOW, I tried more or less random things which looked like they
>> >> should fix the problem. So a review is very much appreciated. Please.
>> >
>> > I've always thought that D/F conflict logic in merge-recursive is placed
>> > at the wrong processing phase.  IIRC, it enumerates potential D/F
>> > conflicting paths before even attempting to process renames, and it is
>> > easy to miss a path that was previously file going away as the result of a
>> > clean merge (in which case it is ok to have a directory there as the
>> > result of a merge for other paths).  This breakage could be a small
>> > example of it.
>> >
>> > Regardless, I think your patch is a reasonable fix to go to the
>> > maintenance track.  Thanks for looking into it.
>>
>> I'm afraid the fix is not that simple: the "if" branch where the change
>> is placed supposed to prevent updating files in the working tree
>> which already have the same content as the merge's output.
>> My change may force them to be updated regardless. I think...
>> Johannes, you know this area the best, could you please have
>> a look?
>
> Sorry, no time at the moment...
>

Maybe the patch could live on master or next for while? Many people track master, so a performance degradation, if it happens, will be noticed. And with master (or even better - next) we have an auditory which is at least capable to complain.

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 6 of 8 in “Add a reminder test case for a merge with F/D transition”
  1. Add a reminder test case for a merge with F/D transitionAlex Riesen, May 11, 2009
  2. Fix for a merge where a branch has an F->D transitionAlex Riesen, May 11, 2009
  3. Junio C HamanoMay 13, 2009
  4. Alex RiesenMay 13, 2009
  5. Johannes SchindelinMay 13, 2009
  6. Alex RiesenMay 13, 2009
  7. Johannes SchindelinMay 20, 2009
  8. Alex RiesenMay 20, 2009

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.