From d20f543619efbac8a1c248cf97a13bf3875cd4dd Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sat, 11 Feb 2023 20:58:18 +0200 Subject: Git: Reduce sync processes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5d83636d4a018464ba6f248aa818fb8f840df9fc Reviewed-by: André Hartmann Reviewed-by: Jarek Kobus --- src/plugins/vcsbase/vcsbaseclient.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/plugins/vcsbase/vcsbaseclient.cpp') diff --git a/src/plugins/vcsbase/vcsbaseclient.cpp b/src/plugins/vcsbase/vcsbaseclient.cpp index c51b1292f9..a73758b15e 100644 --- a/src/plugins/vcsbase/vcsbaseclient.cpp +++ b/src/plugins/vcsbase/vcsbaseclient.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -89,6 +90,16 @@ VcsCommand *VcsBaseClientImpl::createCommand(const FilePath &workingDirectory, return cmd; } +void VcsBaseClientImpl::setupCommand(Utils::QtcProcess &process, + const FilePath &workingDirectory, + const QStringList &args) const +{ + process.setEnvironment(processEnvironment()); + process.setWorkingDirectory(workingDirectory); + process.setCommand({vcsBinary(), args}); + process.setUseCtrlCStub(true); +} + void VcsBaseClientImpl::enqueueJob(VcsCommand *cmd, const QStringList &args, const ExitCodeInterpreter &interpreter) const { -- cgit v1.2.1