From 112835922ac896f1b25381e048fbb295484f1239 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Thu, 8 Dec 2022 21:30:00 +0100 Subject: VcsBase: Reuse CommandOutputBindMode instead of bool Reuse it inside vcsExec() and vcsExecWithHandler(). Change-Id: I6ff4044bf43e0883fc46a49718f5f44da87a7e13 Reviewed-by: Orgad Shaneh --- src/plugins/git/gitclient.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/git/gitclient.cpp') diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index 5e0f104f21..25ce738d9e 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -357,7 +357,7 @@ void GitBaseDiffEditorController::updateBranchList() }; m_instance->vcsExecWithHandler(baseDirectory(), {"branch", noColorOption, "-a", "--contains", revision}, - this, commandHandler, RunFlags::None, false); + this, commandHandler, RunFlags::None, CommandOutputBindMode::NoBind); } /////////////////////////////// @@ -1489,7 +1489,7 @@ void GitClient::recoverDeletedFiles(const FilePath &workingDirectory) void GitClient::addFile(const FilePath &workingDirectory, const QString &fileName) { - vcsExec(workingDirectory, {"add", fileName}, RunFlags::None, false); + vcsExec(workingDirectory, {"add", fileName}, RunFlags::None, CommandOutputBindMode::NoBind); } bool GitClient::synchronousLog(const FilePath &workingDirectory, const QStringList &arguments, @@ -3368,7 +3368,7 @@ VcsCommand *GitClient::vcsExecAbortable(const FilePath &workingDirectory, if (abortCommand.isEmpty()) abortCommand = arguments.at(0); - VcsCommand *command = createCommand(workingDirectory, nullptr, VcsWindowOutputBind); + VcsCommand *command = createCommand(workingDirectory, nullptr, CommandOutputBindMode::ToVcsWindow); command->addFlags(RunFlags::ShowStdOut | RunFlags::ShowSuccessMessage); // For rebase, Git might request an editor (which means the process keeps running until the // user closes it), so run without timeout. -- cgit v1.2.1