forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.2'
Change-Id: I575f1cf98f2a4740577cdd94da21687d3392cdb7
This commit is contained in:
@@ -1137,7 +1137,7 @@ QList<FileData> DiffUtils::readPatch(const QString &patch, bool *ok)
|
||||
QList<FileData> fileDataList;
|
||||
|
||||
QString croppedPatch = patch;
|
||||
// Crop e.g. "-- \n1.9.4.msysgit.0\n\n" at end of file
|
||||
// Crop e.g. "-- \n2.10.2.windows.1\n\n" at end of file
|
||||
const QRegExp formatPatchEndingRegExp(QLatin1String("(\\n-- \\n\\S*\\n\\n$)"));
|
||||
const int pos = formatPatchEndingRegExp.indexIn(patch);
|
||||
if (pos != -1)
|
||||
|
||||
Reference in New Issue
Block a user