diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2020-06-17 23:50:30 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2020-06-18 05:17:59 +0000 |
commit | 5ebe34a33205199bd755283ed0a8c30870dadab8 (patch) | |
tree | 2a3c4429728f4cc6fe66e5bc1997dc6761164c5a /src/plugins/git | |
parent | e9df7825fa8a8714c3623154f1fc3cf13066a9a4 (diff) |
VCS: Add vcsDescribe
Already exists in all implementations, but there was no common declaration.
Change-Id: Ieb3d10d1936c207722b5001712bce41e8114dcdc
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins/git')
-rw-r--r-- | src/plugins/git/gitplugin.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index 2ef9fa230b..2fb41dd1b8 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -250,6 +250,7 @@ public: bool vcsCreateRepository(const QString &directory) final; void vcsAnnotate(const QString &file, int line) final; + void vcsDescribe(const QString &source, const QString &id) final { m_gitClient.show(source, id); }; QString vcsTopic(const QString &directory) final; Core::ShellCommand *createInitialCheckoutCommand(const QString &url, @@ -264,7 +265,7 @@ public: menu->addAction(tr("&Copy \"%1\"").arg(reference), [reference] { QApplication::clipboard()->setText(reference); }); QAction *action = menu->addAction(tr("&Describe Change %1").arg(reference), - [=] { describe(workingDirectory, reference); }); + [=] { vcsDescribe(workingDirectory, reference); }); menu->setDefaultAction(action); GitClient::addChangeActions(menu, workingDirectory, reference); } @@ -366,7 +367,6 @@ public: void onApplySettings();; - void describe(const QString &source, const QString &id) { m_gitClient.show(source, id); }; Core::CommandLocator *m_commandLocator = nullptr; @@ -407,37 +407,37 @@ public: VcsEditorFactory svnLogEditorFactory { &svnLogEditorParameters, [] { return new GitEditorWidget; }, - std::bind(&GitPluginPrivate::describe, this, _1, _2) + std::bind(&GitPluginPrivate::vcsDescribe, this, _1, _2) }; VcsEditorFactory logEditorFactory { &logEditorParameters, [] { return new GitLogEditorWidgetT<GitEditorWidget>; }, - std::bind(&GitPluginPrivate::describe, this, _1, _2) + std::bind(&GitPluginPrivate::vcsDescribe, this, _1, _2) }; VcsEditorFactory reflogEditorFactory { &reflogEditorParameters, [] { return new GitLogEditorWidgetT<GitReflogEditorWidget>; }, - std::bind(&GitPluginPrivate::describe, this, _1, _2) + std::bind(&GitPluginPrivate::vcsDescribe, this, _1, _2) }; VcsEditorFactory blameEditorFactory { &blameEditorParameters, [] { return new GitEditorWidget; }, - std::bind(&GitPluginPrivate::describe, this, _1, _2) + std::bind(&GitPluginPrivate::vcsDescribe, this, _1, _2) }; VcsEditorFactory commitTextEditorFactory { &commitTextEditorParameters, [] { return new GitEditorWidget; }, - std::bind(&GitPluginPrivate::describe, this, _1, _2) + std::bind(&GitPluginPrivate::vcsDescribe, this, _1, _2) }; VcsEditorFactory rebaseEditorFactory { &rebaseEditorParameters, [] { return new GitEditorWidget; }, - std::bind(&GitPluginPrivate::describe, this, _1, _2) + std::bind(&GitPluginPrivate::vcsDescribe, this, _1, _2) }; VcsSubmitEditorFactory submitEditorFactory { |