merge-ort: enable diff-algorithms other than histogram
The ort merge strategy has always used the histogram diff algorithm. The recursive merge strategy, in contrast, defaults to the myers diff algorithm, while allowing it to be changed. Change the ort merge strategy to allow different diff algorithms, by removing the hard coded value in merge_start() and instead just making it a default in init_merge_options(). Technically, this also changes the default diff algorithm for the recursive backend too, but we're going to remove the final callers of the recursive backend in the next two commits. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
77c029493a
commit
2e806d8464
@@ -4957,9 +4957,6 @@ static void merge_start(struct merge_options *opt, struct merge_result *result)
|
||||
}
|
||||
trace2_region_leave("merge", "sanity checks", opt->repo);
|
||||
|
||||
/* Default to histogram diff. Actually, just hardcode it...for now. */
|
||||
opt->xdl_opts = DIFF_WITH_ALG(opt, HISTOGRAM_DIFF);
|
||||
|
||||
/* Handle attr direction stuff for renormalization */
|
||||
if (opt->renormalize)
|
||||
git_attr_set_direction(GIT_ATTR_CHECKOUT);
|
||||
|
||||
Reference in New Issue
Block a user