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:
Jarek Kobus
2023-02-03 02:34:58 +01:00
parent d829d9ff33
commit 77616b8086
3 changed files with 13 additions and 22 deletions

View File

@@ -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()