diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2010-09-21 15:26:03 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-10-11 14:37:00 -0700 |
commit | 6048f34c586daa5b6ada39ccfd397ae2b9fdbfb7 (patch) | |
tree | acb6357265d1d90189534347d957e19c09974a17 /org.eclipse.jgit | |
parent | 14da6e0b9d19ec7e0cb9b3427044e178f751a59c (diff) | |
download | jgit-6048f34c586daa5b6ada39ccfd397ae2b9fdbfb7.tar.gz jgit-6048f34c586daa5b6ada39ccfd397ae2b9fdbfb7.zip |
Use HistogramDiff by default in DiffFormatter
Its behavior is similar to PatienceDiff, and runs nearly as fast,
often beating the performance of MyersDiff.
Change-Id: I43c3faefa8109f1a68ef57522bec9cf27b5df252
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java index 1aa76bc434..be9a86eda9 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java @@ -118,7 +118,7 @@ public class DiffFormatter { private int abbreviationLength = 7; - private DiffAlgorithm diffAlgorithm = MyersDiff.INSTANCE; + private DiffAlgorithm diffAlgorithm = new HistogramDiff(); private RawTextComparator comparator = RawTextComparator.DEFAULT; @@ -213,7 +213,7 @@ public class DiffFormatter { * * @param alg * the algorithm to produce text file differences. - * @see MyersDiff#INSTANCE + * @see HistogramDiff */ public void setDiffAlgorithm(DiffAlgorithm alg) { diffAlgorithm = alg; |