* A helper function which returns the gitplugin responsible * for a given url */
| 33 | * for a given url |
| 34 | */ |
| 35 | GitPlugin* gitForUrl(const QUrl& url) |
| 36 | { |
| 37 | auto* project = ICore::self()->projectController()->findProjectForUrl(url); |
| 38 | auto* vcsplugin = (project ? project->versionControlPlugin() : nullptr); |
| 39 | return (vcsplugin ? vcsplugin->extension<GitPlugin>() : nullptr); |
| 40 | } |
| 41 | |
| 42 | bool DiffViewsCtrl::ViewData::isValid() const |
| 43 | { |
no test coverage detected