diff options
author | Tobias Hunger <[email protected]> | 2015-04-10 15:38:39 +0200 |
---|---|---|
committer | Tobias Hunger <[email protected]> | 2015-04-13 13:42:16 +0000 |
commit | 5c4a025d75192c4a90a92ccfc530947fe662785f (patch) | |
tree | ff4f662eab1848084bf0ab8b04c3051916b1470d /src/plugins/vcsbase/vcsbaseclient.cpp | |
parent | 556614660743e28426b64af30c7000f3225b8696 (diff) |
Vcs: Extend vcsFullySynchronousExec to have flags
Change-Id: I4c4174d8a2b8989d59750c57dc6a0b5aae375670
Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseclient.cpp')
-rw-r--r-- | src/plugins/vcsbase/vcsbaseclient.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/vcsbase/vcsbaseclient.cpp b/src/plugins/vcsbase/vcsbaseclient.cpp index 042037475c6..2f3dd975c4b 100644 --- a/src/plugins/vcsbase/vcsbaseclient.cpp +++ b/src/plugins/vcsbase/vcsbaseclient.cpp @@ -389,10 +389,12 @@ bool VcsBaseClient::synchronousPush(const QString &workingDir, bool VcsBaseClient::vcsFullySynchronousExec(const QString &workingDir, const QStringList &args, QByteArray *outputData, - QByteArray *errorData) const + QByteArray *errorData, + unsigned flags) const { QByteArray internalErrorData; QScopedPointer<VcsCommand> command(createCommand(workingDir)); + command->addFlags(flags); bool result = command->runFullySynchronous(args, vcsTimeoutS(), outputData, errorData ? errorData : &internalErrorData); if (!internalErrorData.isEmpty()) |