mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs] Fix patch reader so that lines outside context are not parsed
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user