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

Re: [PATCH] merge-ort: avoid assuming all renames detected

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 16, 2022, 23:19 UTC
Message-ID
<xmqqwnizxo8g.fsf@gitster.g>
In-Reply-To
<pull.1194.git.git.1642212566346.gitgitgadget@gmail.com>
"Elijah Newren via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 9 quoted lines
> diff --git a/merge-ort.c b/merge-ort.c
> index c3197970219..143d274f117 100644
> --- a/merge-ort.c
> +++ b/merge-ort.c
> @@ -3060,6 +3060,10 @@ static int detect_and_process_renames(struct merge_options *opt,
>  	trace2_region_enter("merge", "regular renames", opt->repo);
>  	detection_run |= detect_regular_renames(opt, MERGE_SIDE1);
>  	detection_run |= detect_regular_renames(opt, MERGE_SIDE2);
> +	if (renames->needed_limit != 0) {
Don't compare with NULL or 0, i.e.
	if (renames->needed_limit) {
Show 6 quoted lines
> +		renames->cached_pairs_valid_side = 0;
> +		renames->redo_after_renames = 0;
> +	}
>  	if (renames->redo_after_renames && detection_run) {
>  		int i, side;
>  		struct diff_filepair *p;
Previous: Junio C HamanoNext: Elijah Newren via GitGitGadget
Message 3 of 12 in “merge-ort: avoid assuming all renames detected”
  1. merge-ort: avoid assuming all renames detectedElijah Newren via GitGitGadget, Jan 15, 2022
  2. Junio C HamanoJan 16, 2022
  3. Junio C HamanoJan 16, 2022
  4. merge-ort: avoid assuming all renames detectedElijah Newren via GitGitGadget, Jan 17, 2022
  5. Junio C HamanoJan 17, 2022
  6. Elijah NewrenJan 17, 2022
  7. Taylor BlauJan 17, 2022
  8. Junio C HamanoJan 17, 2022
  9. Junio C HamanoJan 17, 2022
  10. SZEDER GáborJun 30, 2022
  11. Elijah NewrenJul 1, 2022
  12. Elijah NewrenJul 1, 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.