diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-12-08 21:30:00 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-12-09 10:29:51 +0000 |
commit | 112835922ac896f1b25381e048fbb295484f1239 (patch) | |
tree | 93ae514cbcea2b6915e074fec206b36aa80e5c6f /src/plugins/git/gitclient.cpp | |
parent | 46213c82be82124be7fcdcb15bceecf2d174052d (diff) | |
download | qt-creator-112835922ac896f1b25381e048fbb295484f1239.tar.gz |
VcsBase: Reuse CommandOutputBindMode instead of bool
Reuse it inside vcsExec() and vcsExecWithHandler().
Change-Id: I6ff4044bf43e0883fc46a49718f5f44da87a7e13
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git/gitclient.cpp')
-rw-r--r-- | src/plugins/git/gitclient.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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. |