GitClient: Simplify vcsExec

Get rid of editor arg.
Reorder last two args (to conform to vcsExecWithHandler).

Change-Id: Ia32757ac8b766640b76bef81f1b2e0f5efe4d48c
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-12-08 20:52:03 +01:00
parent 0cdfac0cb5
commit 46213c82be
3 changed files with 9 additions and 13 deletions

View File

@@ -93,12 +93,10 @@ public:
const CommandHandler &handler,
RunFlags additionalFlags = RunFlags::None,
bool useOutputToWindow = true) const;
// Simple helper to execute a single command using createCommand and enqueueJob.
void vcsExec(const Utils::FilePath &workingDirectory,
const QStringList &arguments,
VcsBaseEditorWidget *editor = nullptr,
bool useOutputToWindow = false,
RunFlags additionalFlags = RunFlags::None) const;
RunFlags additionalFlags = RunFlags::None,
bool useOutputToWindow = true) const;
void vcsExecWithEditor(const Utils::FilePath &workingDirectory,
const QStringList &arguments,
VcsBaseEditorWidget *editor) const;