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

Method createBranch

kdevplatform/vcs/models/brancheslistmodel.cpp:115–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void BranchesListModel::createBranch(const QString& baseBranch, const QString& newBranch)
116{
117 Q_D(BranchesListModel);
118
119 qCDebug(VCS) << "Creating " << baseBranch << " based on " << newBranch;
120 KDevelop::VcsRevision rev;
121 rev.setRevisionValue(baseBranch, KDevelop::VcsRevision::GlobalNumber);
122 KDevelop::VcsJob* branchJob = d->dvcsplugin->branch(d->repo, rev, newBranch);
123
124 qCDebug(VCS) << "Adding new branch";
125 if (branchJob->exec())
126 appendRow(new BranchItem(newBranch));
127}
128
129void BranchesListModel::removeBranch(const QString& branch)
130{

Callers

nothing calls this directly

Calls 3

setRevisionValueMethod · 0.80
branchMethod · 0.80
execMethod · 0.80

Tested by

no test coverage detected