patch: check myIsReversePath when adding "\ No newline at EOF"

hopefully, soon this method will be removed completely
This commit is contained in:
Aleksey Pivovarov
2016-07-15 18:42:54 +03:00
parent 76d5674666
commit 0e3f3b809d
@@ -174,11 +174,11 @@ public class TextPatchBuilder {
}
}
checkPathEndLine(patch, c.getAfter());
checkPathEndLine(patch, afterRevision);
}
else if (!beforeRevision.getPath().equals(afterRevision.getPath())) {
TextFilePatch movedPatch = buildMovedFile(beforeRevision, afterRevision);
checkPathEndLine(movedPatch, c.getAfter());
checkPathEndLine(movedPatch, afterRevision);
result.add(movedPatch);
}
}