diff options
author | Stefan Lay <stefan.lay@sap.com> | 2011-05-16 21:15:25 -0400 |
---|---|---|
committer | Code Review <codereview-daemon@eclipse.org> | 2011-05-16 21:15:25 -0400 |
commit | b13ca9121b8f2c6a0ebca1a2a12c4af7e75dfd20 (patch) | |
tree | 1650798e943456a0bc705c1a91ff6e52ed647f14 /org.eclipse.jgit | |
parent | 2e43e1e904c9c8702d3c248d0fdb8b7cb6162cb2 (diff) | |
parent | c2b87d59a0ca13f1444ea3a62decfa3f04ee7600 (diff) | |
download | jgit-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.java | 2 |
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++; |