Browse Source

Merge branch 'stable-5.2' into stable-5.3

* stable-5.2:
  Fix WorkingTreeIterator.compareMetadata() for CheckStat.MINIMAL

Change-Id: I57093dfef181645088767471159c204c50961c3a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.3
Matthias Sohn 5 years ago
parent
commit
8f96e1bebb
  1. 5
      org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java

5
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java

@ -951,9 +951,10 @@ public abstract class WorkingTreeIterator extends AbstractTreeIterator {
if (fileLastModified.getEpochSecond() != cacheLastModified if (fileLastModified.getEpochSecond() != cacheLastModified
.getEpochSecond()) { .getEpochSecond()) {
return MetadataDiff.DIFFER_BY_TIMESTAMP; return MetadataDiff.DIFFER_BY_TIMESTAMP;
} else if (entry.isSmudged()) {
return MetadataDiff.SMUDGED;
} }
} } else if (!fileLastModified.equals(cacheLastModified)) {
if (!fileLastModified.equals(cacheLastModified)) {
return MetadataDiff.DIFFER_BY_TIMESTAMP; return MetadataDiff.DIFFER_BY_TIMESTAMP;
} else if (entry.isSmudged()) { } else if (entry.isSmudged()) {
return MetadataDiff.SMUDGED; return MetadataDiff.SMUDGED;

Loading…
Cancel
Save