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

Function gitForUrl

plugins/git/diffviewsctrl.cpp:35–40  ·  view source on GitHub ↗

* A helper function which returns the gitplugin responsible * for a given url */

Source from the content-addressed store, hash-verified

33 * for a given url
34 */
35GitPlugin* 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
42bool DiffViewsCtrl::ViewData::isValid() const
43{

Callers 2

createViewMethod · 0.85
updateDiffMethod · 0.85

Calls 3

findProjectForUrlMethod · 0.80
projectControllerMethod · 0.80
versionControlPluginMethod · 0.80

Tested by

no test coverage detected