]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Use "internal" smoothing for code diffs in Arcanist
authorepriestley <git@epriestley.com>
Tue, 7 Jun 2016 20:44:45 +0000 (13:44 -0700)
committerepriestley <git@epriestley.com>
Tue, 7 Jun 2016 21:15:20 +0000 (14:15 -0700)
Summary: Ref T7643. This moves the prefix/suffix smoothing behavior back to the old one, which seems better for code diffs.

Test Plan: `arc unit --everything`

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T7643

Differential Revision: https://secure.phabricator.com/D16074

src/difference/ArcanistDiffUtils.php

index f09573a1ca8944eaaf9682b9ddfbfb962a7feee3..111f9d02289af6672bdf57a58bb94f8289410afc 100644 (file)
@@ -151,7 +151,7 @@ final class ArcanistDiffUtils extends Phobject {
       ->setReplaceCost(2)
       ->setMaximumLength($max)
       ->setSequences($ov, $nv)
-      ->setApplySmoothing(true)
+      ->setApplySmoothing(PhutilEditDistanceMatrix::SMOOTHING_INTERNAL)
       ->getEditString();
   }