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

Re: [PATCH 2/3] merge-recursive: fix logic ordering issue

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 5, 2018, 21:22 UTC
Message-ID
<nycvar.QRO.7.76.6.1801052221210.1337@wbunaarf-fpuvaqryva.tvgsbejvaqbjf.bet>
In-Reply-To
<20180105202001.24218-3-newren@gmail.com>
Hi Elijah,
On Fri, 5 Jan 2018, Elijah Newren wrote:
Show 11 quoted lines
> merge_trees() did a variety of work, including:
>   * Calling get_unmerged() to get unmerged entries
>   * Calling record_df_conflict_files() with all unmerged entries to
>     do some work to ensure we could handle D/F conflicts correctly
>   * Calling get_renames() to check for renames.
> 
> An easily overlooked issue is that get_renames() can create more
> unmerged entries and add them to the list, which have the possibility of
> being involved in D/F conflicts.  So the call to
> record_df_conflict_files() should really be moved after all the rename
> detection.

I cannot actually see how the *current* rename detection would result in D/F conflicts, as it is really only about detecting the renames, the conflicts should have happened earlier.

But I could imagine that your "detect directory renames" patch series changes this behavior.

In any case, the reordering does not hurt.

Ciao, Dscho

Previous: Elijah NewrenNext: Elijah Newren
Message 5 of 7 in “Some small fixes to merge-recursive and tests”
  1. 0/3 Some small fixes to merge-recursive and testsElijah Newren, Jan 5, 2018
  2. 1/3 Tighten and correct a few testcases for merging and cherry-pickingElijah Newren, Jan 5, 2018
  3. Johannes SchindelinJan 5, 2018
  4. 2/3 merge-recursive: fix logic ordering issueElijah Newren, Jan 5, 2018
  5. Johannes SchindelinJan 5, 2018
  6. 3/3 merge-recursive: add explanation for src_entry and dst_entryElijah Newren, Jan 5, 2018
  7. Johannes SchindelinJan 5, 2018

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.