diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/diff/SimilarityIndex.java b/org.eclipse.jgit/src/org/eclipse/jgit/diff/SimilarityIndex.java index 6627268e4..853132589 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/diff/SimilarityIndex.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/diff/SimilarityIndex.java @@ -230,8 +230,8 @@ class SimilarityIndex { break; srcKey = keyOf(srcHash[srcIdx]); - } else /* if (srcKey > dstKey) */{ - // Regions of dst which do not appear in dst. + } else /* if (dstKey < srcKey) */{ + // Regions of dst which do not appear in src. if (++dstIdx == dstHash.length) break; dstKey = keyOf(dstHash[dstIdx]);