aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/vcsbase/vcsbaseclient.cpp
diff options
context:
space:
mode:
authorTobias Hunger <[email protected]>2015-04-14 15:26:15 +0200
committerTobias Hunger <[email protected]>2015-04-15 12:24:20 +0000
commitd45dea6cf82e9a46b4c980f4562315d9366bf9dd (patch)
tree951d8f2cf6e542f354fd60280440f7d0ee3efe2b /src/plugins/vcsbase/vcsbaseclient.cpp
parent7668d4388b08864764f1a8e588070320d8d0bcce (diff)
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 <[email protected]>
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseclient.cpp')
-rw-r--r--src/plugins/vcsbase/vcsbaseclient.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/vcsbase/vcsbaseclient.cpp b/src/plugins/vcsbase/vcsbaseclient.cpp
index 2fc461560ef..cef245d0512 100644
--- a/src/plugins/vcsbase/vcsbaseclient.cpp
+++ b/src/plugins/vcsbase/vcsbaseclient.cpp
@@ -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,