Git: Separate internal plugin access API from plugin class

Plan is to hide the plugin class definition to the .cpp later.

Change-Id: I27f6d2dd23adb4f3ab47d99b0626956889d2750f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2024-01-15 10:48:03 +01:00
parent 4434b09d49
commit 892e7c0f3a
12 changed files with 59 additions and 59 deletions

View File

@@ -224,7 +224,7 @@ void GerritPlugin::push(const FilePath &topLevel)
static FilePath currentRepository()
{
return GitPlugin::currentState().topLevel();
return currentState().topLevel();
}
// Open or raise the Gerrit dialog window.
@@ -362,7 +362,7 @@ void GerritPlugin::fetch(const QSharedPointer<GerritChange> &change, int mode)
// Try to find a matching repository for a project by asking the VcsManager.
FilePath GerritPlugin::findLocalRepository(const QString &project, const QString &branch) const
{
const FilePaths gitRepositories = VcsManager::repositories(GitPlugin::versionControl());
const FilePaths gitRepositories = VcsManager::repositories(versionControl());
// Determine key (file name) to look for (qt/qtbase->'qtbase').
const int slashPos = project.lastIndexOf('/');
const QString fixedProject = (slashPos < 0) ? project : project.mid(slashPos + 1);