| 197 | } |
| 198 | |
| 199 | void BranchesListModel::setProject(KDevelop::IProject* p) |
| 200 | { |
| 201 | if(!p || !p->versionControlPlugin()) { |
| 202 | qCDebug(VCS) << "null or invalid project" << p; |
| 203 | return; |
| 204 | } |
| 205 | |
| 206 | auto* branching = p->versionControlPlugin()->extension<KDevelop::IBranchingVersionControl>(); |
| 207 | if(branching) { |
| 208 | initialize(branching, p->path().toUrl()); |
| 209 | } else |
| 210 | qCDebug(VCS) << "not a branching vcs project" << p->name(); |
| 211 | } |
| 212 | |
| 213 | void BranchesListModel::setCurrentBranch(const QString& branch) |
| 214 | { |
nothing calls this directly
no test coverage detected