forked from qt-creator/qt-creator
GitClient: Introduce execWithEditor()
Change-Id: I3a7edde4b978cb8e99fe0020d69a0a5e3e09c0fb Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -192,6 +192,16 @@ void VcsBaseClientImpl::vcsExec(const FilePath &workingDirectory,
|
||||
command->start();
|
||||
}
|
||||
|
||||
void VcsBaseClientImpl::vcsExecWithEditor(const Utils::FilePath &workingDirectory,
|
||||
const QStringList &arguments,
|
||||
VcsBaseEditorWidget *editor) const
|
||||
{
|
||||
VcsCommand *command = createCommand(workingDirectory, editor, NoOutputBind);
|
||||
command->setCodec(editor->codec());
|
||||
command->addJob({vcsBinary(), arguments}, vcsTimeoutS());
|
||||
command->start();
|
||||
}
|
||||
|
||||
int VcsBaseClientImpl::vcsTimeoutS() const
|
||||
{
|
||||
return m_baseSettings->timeout.value();
|
||||
|
||||
Reference in New Issue
Block a user