MCPcopy Create free account
hub / github.com/KDE/kdevelop / setCurrentBranch

Method setCurrentBranch

kdevplatform/vcs/models/brancheslistmodel.cpp:213–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void BranchesListModel::setCurrentBranch(const QString& branch)
214{
215 Q_D(BranchesListModel);
216
217 KDevelop::VcsJob* job = d->dvcsplugin->switchBranch(d->repo, branch);
218 connect(job, &VcsJob::finished, this, &BranchesListModel::currentBranchChanged);
219 KDevelop::ICore::self()->runController()->registerJob(job);
220}
221
222#include "moc_brancheslistmodel.cpp"

Callers

nothing calls this directly

Calls 3

switchBranchMethod · 0.80
registerJobMethod · 0.80
runControllerMethod · 0.80

Tested by

no test coverage detected