diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/filter/IndexDiffFilter.java b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/filter/IndexDiffFilter.java index 5aab24caf..3ef3d9791 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/filter/IndexDiffFilter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/filter/IndexDiffFilter.java @@ -199,7 +199,7 @@ public boolean include(TreeWalk tw) throws MissingObjectException, // If i is cnt then the path does not appear in any other tree, // and this working tree entry can be safely ignored. - return i == cnt ? false : true; + return i != cnt; } else { // In working tree and not ignored, and not in DirCache. return true;