mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
patch: check myIsReversePath when adding "\ No newline at EOF"
hopefully, soon this method will be removed completely
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user