forked from qt-creator/qt-creator
VcsBase: Hide VcsCommand class
Make it an implementation detail. Introduce VcsBaseClient::createVcsCommand() method instead for instantiating VcsCommands. Replace all occuriences of VcsBase::VcsCommand in public API with Utils::ShellCommand. Change-Id: Ie438cc3a5e867b3ee8f9e935b56b2f16ea453f8a Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -28,10 +28,10 @@
|
||||
#include "gitconstants.h"
|
||||
|
||||
#include <vcsbase/vcsoutputwindow.h>
|
||||
#include <vcsbase/vcscommand.h>
|
||||
|
||||
#include <utils/filesystemwatcher.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/shellcommand.h>
|
||||
#include <utils/stringutils.h>
|
||||
|
||||
#include <QDateTime>
|
||||
@@ -624,7 +624,7 @@ void BranchModel::removeTag(const QModelIndex &idx)
|
||||
removeNode(idx);
|
||||
}
|
||||
|
||||
VcsCommand *BranchModel::checkoutBranch(const QModelIndex &idx)
|
||||
ShellCommand *BranchModel::checkoutBranch(const QModelIndex &idx)
|
||||
{
|
||||
QString branch = fullName(idx, !isLocal(idx));
|
||||
if (branch.isEmpty())
|
||||
@@ -908,7 +908,7 @@ void BranchModel::updateUpstreamStatus(BranchNode *node)
|
||||
{
|
||||
if (node->tracking.isEmpty())
|
||||
return;
|
||||
VcsCommand *command = d->client->asyncUpstreamStatus(
|
||||
ShellCommand *command = d->client->asyncUpstreamStatus(
|
||||
d->workingDirectory, node->fullRef(), node->tracking);
|
||||
QObject::connect(command, &ShellCommand::stdOutText, node, [this, node](const QString &text) {
|
||||
if (text.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user