From c27cc67eab1932b9ffbe39ed1a8fbe520eb3c503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Niemier?= Date: Tue, 21 Jan 2020 11:29:11 +0100 Subject: [PATCH] feat(diff): use histogram algorithm for better results `histogram` is like `patience` but with additional checks for better results in case of "low-occurrence common elements". --- lib/diff/hex/hex.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/diff/hex/hex.ex b/lib/diff/hex/hex.ex index 2ec86c7..2f3eaa7 100644 --- a/lib/diff/hex/hex.ex +++ b/lib/diff/hex/hex.ex @@ -94,6 +94,8 @@ defmodule Diff.Hex do case System.cmd("git", [ "-c", "core.quotepath=false", + "-c", + "diff.algorithm=histogram", "diff", "--no-index", "--no-color",