forked from qt-creator/qt-creator
DiffUtils: Get rid of PatchFormattingFlags
Get rid of PatchFormattingFlags argument inside DiffUtils::makePatch(), as there is the only caller of this method. Internally, behave like the GitFormat flag was passed. As all callers to sideFileName() were always passing AddLevel (GitFormat flag contained AddLevel), the flag is not needed anymore. Change-Id: I1993cfd7212f5f60a5bdb2c9e1e4317c3ecd91d7 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -368,7 +368,7 @@ static QString formatGitDescription(const QString &description)
|
||||
QString DiffEditorDocument::plainText() const
|
||||
{
|
||||
return Utils::joinStrings({formatGitDescription(description()),
|
||||
DiffUtils::makePatch(diffFiles(), DiffUtils::GitFormat)}, '\n');
|
||||
DiffUtils::makePatch(diffFiles())}, '\n');
|
||||
}
|
||||
|
||||
void DiffEditorDocument::beginReload()
|
||||
|
||||
Reference in New Issue
Block a user