Commit 98d3fa13 authored by Evgeniy Ivanov's avatar Evgeniy Ivanov
Browse files

Minor changes in DVCS menu

parent 3ee02d21
......@@ -73,6 +73,11 @@ bool GitExecutor::isValidDirectory(const KUrl & dirPath)
return false;
}
QString GitExecutor::name() const
{
return QString("Git");
}
bool GitExecutor::prepareJob(DVCSjob* job, const QString& repository, enum RequestedOperation op)
{
// Only do this check if it's a normal operation like diff, log ...
......
......@@ -72,6 +72,7 @@ class GitExecutor : public QObject, public KDevelop::IDVCSexecutor
~GitExecutor();
bool isValidDirectory(const KUrl &dirPath);
QString name() const;
DVCSjob* init(const KUrl & directory);
DVCSjob* clone(const KUrl &directory, const KUrl repository);
......
......@@ -52,9 +52,4 @@ GitPlugin::~GitPlugin()
delete DistributedVersionControlPlugin::d;
}
QString GitPlugin::name() const
{
return i18n("Git");
}
// #include "gitplugin.moc"
......@@ -44,8 +44,6 @@ public:
GitPlugin(QObject *parent, const QVariantList & args = QVariantList() );
~GitPlugin();
QString name() const;
};
#endif
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="KDevGit" version="1">
<Menu name="git_popup">
<Menu name="dvcs_popup">
<text context="@title:menu">Git</text>
<Action name="git_init" />
<Action name="git_clone" />
<Action name="dvcs_init" />
<Action name="dvcs_clone" />
</Menu>
</kpartgui>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment