forked from qt-creator/qt-creator
Git: Move executeGit into VcsBaseClientImpl
and rename it to vcsExec. Accept a QVariant to set as cookie on the command instead of a int for the linenumber. Change-Id: I8240b53e775ac3883f92bdbf7b111abeeeb39426 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -216,6 +216,18 @@ bool VcsBaseClientImpl::vcsFullySynchronousExec(const QString &workingDir, const
|
||||
return result;
|
||||
}
|
||||
|
||||
VcsCommand *VcsBaseClientImpl::vcsExec(const QString &workingDirectory, const QStringList &arguments,
|
||||
VcsBaseEditorWidget *editor, bool useOutputToWindow,
|
||||
unsigned additionalFlags, const QVariant &cookie)
|
||||
{
|
||||
VcsCommand *command = createCommand(workingDirectory, editor,
|
||||
useOutputToWindow ? VcsWindowOutputBind : NoOutputBind);
|
||||
command->setCookie(cookie);
|
||||
command->addFlags(additionalFlags);
|
||||
enqueueJob(command, arguments);
|
||||
return command;
|
||||
}
|
||||
|
||||
Utils::SynchronousProcessResponse VcsBaseClientImpl::vcsSynchronousExec(const QString &workingDir,
|
||||
const QStringList &args,
|
||||
unsigned flags,
|
||||
|
Reference in New Issue
Block a user