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

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

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
Jul 29, 2022, 17:12 UTC
Message-ID
<pull.1307.v2.git.1659114727.gitgitgadget@gmail.com>
In-Reply-To
<pull.1307.git.1659084748350.gitgitgadget@gmail.com>
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(+)
base-commit: 557ac0350d9efa1f59c708779ca3fb3aee121131
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1307%2Fdscho%2Fmerge-ort-impl-leakfix-v2
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1307/dscho/merge-ort-impl-leakfix-v2
Pull-Request: https://github.com/gitgitgadget/git/pull/1307
Range-diff vs v1:
 1:  128f77f7f34 ! 1:  082c7ffa41f merge-ort: clean up after failed merge
     @@ merge-ort.c: void merge_switch_to_result(struct merge_options *opt,
      +			merge_finalize(opt, result);
       			return;
       		}
     - 
     + 		trace2_region_leave("merge", "checkout", opt->repo);
      @@ merge-ort.c: void merge_switch_to_result(struct merge_options *opt,
       						    &opti->conflicted)) {
       			/* failure to function */
     @@ merge-ort.c: void merge_switch_to_result(struct merge_options *opt,
      +			merge_finalize(opt, result);
       			return;
       		}
     - 	}
     + 		trace2_region_leave("merge", "record_conflicted", opt->repo);
 -:  ----------- > 2:  d2e1af0f922 merge-ort: do leave Trace2 region even if checkout fails
-- 
gitgitgadget
Previous: Elijah NewrenNext: Johannes Schindelin via GitGitGadget
Message 3 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.