forked from qt-creator/qt-creator
GitClient: Simplify vcsExec
Get rid of editor arg. Reorder last two args (to conform to vcsExecWithHandler). Change-Id: Ia32757ac8b766640b76bef81f1b2e0f5efe4d48c Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -180,14 +180,12 @@ void VcsBaseClientImpl::vcsExecWithHandler(const FilePath &workingDirectory,
|
||||
|
||||
void VcsBaseClientImpl::vcsExec(const FilePath &workingDirectory,
|
||||
const QStringList &arguments,
|
||||
VcsBaseEditorWidget *editor, bool useOutputToWindow,
|
||||
RunFlags additionalFlags) const
|
||||
RunFlags additionalFlags,
|
||||
bool useOutputToWindow) const
|
||||
{
|
||||
VcsCommand *command = createCommand(workingDirectory, editor,
|
||||
VcsCommand *command = createCommand(workingDirectory, nullptr,
|
||||
useOutputToWindow ? VcsWindowOutputBind : NoOutputBind);
|
||||
command->addFlags(additionalFlags);
|
||||
if (editor)
|
||||
command->setCodec(editor->codec());
|
||||
command->addJob({vcsBinary(), arguments}, vcsTimeoutS());
|
||||
command->start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user