mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
Use histogram instead of myers for diffing
This commit is contained in:
1 parent
e2568c52cd
commit
e60d184f97
1 file changed
+1
-1
+1
-1
@@ -80,7 +80,7 @@ pub fn get_git_diff(filename: &Path) -> Option<LineChanges> {
|
|||||||
)
|
)
|
||||||
.ok()?;
|
.ok()?;
|
||||||
let diff = gix::diff::blob::diff_with_slider_heuristics(
|
let diff = gix::diff::blob::diff_with_slider_heuristics(
|
||||||
Algorithm::Myers,
|
Algorithm::Histogram,
|
||||||
&cache.prepare_diff().ok()?.interned_input(),
|
&cache.prepare_diff().ok()?.interned_input(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user