]> git.ipfire.org Git - thirdparty/git.git/commit
merge-ort: enable diff-algorithms other than histogram
authorElijah Newren <newren@gmail.com>
Tue, 8 Apr 2025 15:48:37 +0000 (15:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Apr 2025 20:59:12 +0000 (13:59 -0700)
commit2e806d8464decacc307cdbfa45c98be8e28382da
tree99f9e732b9e5a777e17bbb424f22689ecb0a4418
parent77c029493a671d9ee200bda42da0a3c04cdf110f
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>
Documentation/merge-strategies.adoc
merge-ort.c
merge-recursive.c