summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorStefan Lay <stefan.lay@sap.com>2011-05-16 21:15:25 -0400
committerCode Review <codereview-daemon@eclipse.org>2011-05-16 21:15:25 -0400
commitb13ca9121b8f2c6a0ebca1a2a12c4af7e75dfd20 (patch)
tree1650798e943456a0bc705c1a91ff6e52ed647f14 /org.eclipse.jgit
parent2e43e1e904c9c8702d3c248d0fdb8b7cb6162cb2 (diff)
parentc2b87d59a0ca13f1444ea3a62decfa3f04ee7600 (diff)
downloadjgit-b13ca9121b8f2c6a0ebca1a2a12c4af7e75dfd20.tar.gz
jgit-b13ca9121b8f2c6a0ebca1a2a12c4af7e75dfd20.zip
Merge "Fix diff bug on inserted line"
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffAlgorithm.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffAlgorithm.java b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffAlgorithm.java
index b20e3258b6..96f4d11857 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffAlgorithm.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffAlgorithm.java
@@ -126,7 +126,7 @@ public abstract class DiffAlgorithm {
Edit last = e.get(e.size() - 1);
if (last.getType() == Edit.Type.INSERT) {
while (last.endB < b.size()
- && cmp.equals(b, last.beginB, b, region.endB)) {
+ && cmp.equals(b, last.beginB, b, last.endB)) {
last.beginA++;
last.endA++;
last.beginB++;