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

Re: [PATCH v2 0/2] merge-ort: clean up after failed merge

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 31, 2022, 18:44 UTC
Message-ID
<xmqqles915rx.fsf@gitster.g>
In-Reply-To
<CABPp-BGKUkVKJK87jZn-7A3AuxDjKwttVpez9UVZrTJZyCFodw@mail.gmail.com>
Elijah Newren <newren@gmail.com> writes:
Show 21 quoted lines
> On Fri, Jul 29, 2022 at 10:12 AM Johannes Schindelin via GitGitGadget
> <gitgitgadget@gmail.com> wrote:
>>
>> I was investigating why seen's CI runs fail, and came up with this fix.
>>
>> Changes since v1:
>>
>>  * Rebased onto en/merge-ort-perf.
>>  * Now we're not only cleaning up the merge data structure, but also leaving
>>    the Trace2 region when returning early from merge_switch_to_result().
>>
>> Johannes Schindelin (2):
>>   merge-ort: clean up after failed merge
>>   merge-ort: do leave Trace2 region even if checkout fails
>>
>>  merge-ort.c | 5 +++++
>>  1 file changed, 5 insertions(+)
>
> Thanks, series looks good to me:
>
> Reviewed-by: Elijah Newren <newren@gmail.com>
Thanks, both.

The new "leave" calls immediately next to the existing ones that look identical appear duplicated, but correcting the logic first in an obvious way like the posted patch, leaving any clean-up to later, is a prudent thing to do.

Queued.
Previous: Elijah Newren
Message 7 of 7 in “merge-ort: clean up after failed merge”
  1. merge-ort: clean up after failed mergeJohannes Schindelin via GitGitGadget, Jul 29, 2022
  2. Elijah NewrenJul 29, 2022
  3. 0/2 merge-ort: clean up after failed mergeJohannes Schindelin via GitGitGadget, Jul 29, 2022
  4. 1/2 merge-ort: clean up after failed mergeJohannes Schindelin via GitGitGadget, Jul 29, 2022
  5. 2/2 merge-ort: do leave Trace2 region even if checkout failsJohannes Schindelin via GitGitGadget, Jul 29, 2022
  6. Elijah NewrenJul 30, 2022
  7. Junio C HamanoJul 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.