Thread (185 messages) 185 messages, 9 authors, 2022-12-15

Re: [PATCH v6 10/13] merge: use the "resolve" strategy without forking

From: Derrick Stolee <hidden>
Date: 2021-01-05 16:46:09

On 11/24/2020 6:53 AM, Alban Gruin wrote:
This teaches `git merge' to invoke the "resolve" strategy with a
function call instead of forking.
...
quoted hunk ↗ jump to hunk
@@ -740,6 +741,9 @@ static int try_merge_strategy(const char *strategy, struct commit_list *common,
 				       COMMIT_LOCK | SKIP_IF_UNCHANGED))
 			die(_("unable to write %s"), get_index_file());
 		return clean ? 0 : 1;
+	} else if (!strcmp(strategy, "resolve")) {
+		return merge_strategies_resolve(the_repository, common,
+						head_arg, remoteheads);
 	} else {
 		return try_merge_command(the_repository,
 					 strategy, xopts_nr, xopts,
This is a very satisfying change.

Thanks,
-Stolee
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help