VcsBaseDiffEditorController: Make post processing reusable

Move creating the post process task into vcs base class
and reuse it in subclasses.

Change-Id: Ibd81d1640524980c0554a5d0ddc41b96ecd7f73f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-12-15 10:27:23 +01:00
parent 6de2b0cbb3
commit 36fd9cb9d5
3 changed files with 48 additions and 38 deletions

View File

@@ -38,9 +38,10 @@ public:
void setVcsTimeoutS(int value);
protected:
Utils::Tasking::TreeStorage<QString> inputStorage() const;
Utils::Tasking::TaskItem postProcessTask();
void setupCommand(Utils::QtcProcess &process, const QStringList &args) const;
void setupDiffProcessor(Utils::AsyncTask<QList<DiffEditor::FileData>> &processor,
const QString &patch) const;
void runCommand(const QList<QStringList> &args, RunFlags flags, QTextCodec *codec = nullptr);
virtual void processCommandOutput(const QString &output);