forked from qt-creator/qt-creator
GitClient: Replace describe command with QtcProcess
There is no need to use VcsCommand when NoOutput is passed. Get rid of execBgCommand(). Change-Id: I58354e99ddc0c4049325560022ba6e755092b817 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -87,19 +87,6 @@ VcsCommand *VcsBaseClientImpl::createCommand(const FilePath &workingDirectory,
|
||||
return cmd;
|
||||
}
|
||||
|
||||
VcsCommand *VcsBaseClientImpl::execBgCommand(const FilePath &workingDirectory,
|
||||
const QStringList &args,
|
||||
const std::function<void (const QString &)> &outputCallback,
|
||||
unsigned flags) const
|
||||
{
|
||||
VcsCommand *cmd = createCommand(workingDirectory);
|
||||
cmd->addFlags(flags | VcsCommand::NoOutput);
|
||||
cmd->addJob({vcsBinary(), args}, vcsTimeoutS());
|
||||
connect(cmd, &VcsCommand::stdOutText, this, outputCallback);
|
||||
cmd->execute();
|
||||
return cmd;
|
||||
}
|
||||
|
||||
void VcsBaseClientImpl::enqueueJob(VcsCommand *cmd, const QStringList &args,
|
||||
const ExitCodeInterpreter &interpreter) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user