[vcs] Fix patch reader so that lines outside context are not parsed

This commit is contained in:
Ivan Semenov
2018-08-29 14:56:44 +03:00
parent 188aab96e1
commit 1e8a061e00
@@ -432,7 +432,7 @@ public class PatchReader {
else if (line.startsWith("-") && expectMeaningfulLines) {
type = PatchLine.Type.REMOVE;
}
else if (line.startsWith(" ") || line.length() == 0) {
else if (line.startsWith(" ") && expectMeaningfulLines) {
type = PatchLine.Type.CONTEXT;
}
else {