aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.iplog
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-09-06 13:33:31 -0700
committerShawn O. Pearce <spearce@spearce.org>2010-09-10 22:18:54 -0700
commit307ba53eb65f616252567bfc6b8c52703a192be1 (patch)
tree68cb0049974443c5268ff3cf1afdc71b759b0147 /org.eclipse.jgit.iplog
parent9d14f56442fe02bc3417b26c1211b9f1d0ee476a (diff)
downloadjgit-307ba53eb65f616252567bfc6b8c52703a192be1.tar.gz
jgit-307ba53eb65f616252567bfc6b8c52703a192be1.zip
Define DiffAlgorithm as an abstract function
This makes it easier to parametrize DiffFormatter with a different implementation, as we later plan to add PatienceDiff to JGit. Change-Id: Id35ef478d5fa20fe10a1ba297f9436fd7adde9ce Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.iplog')
-rw-r--r--org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java b/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java
index 5013eb6b8a..66345bb7dc 100644
--- a/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java
+++ b/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java
@@ -384,9 +384,9 @@ public class IpLogGenerator {
else
oldImage = new byte[0];
- EditList edits = new MyersDiff<RawText>(
+ EditList edits = MyersDiff.INSTANCE.diff(
RawTextComparator.DEFAULT, new RawText(oldImage),
- new RawText(openBlob(1))).getEdits();
+ new RawText(openBlob(1)));
for (Edit e : edits)
addedLines += e.getEndB() - e.getBeginB();
}