forked from qt-creator/qt-creator
IVcsControl: Add additionalToolsPath()
Add a method for a VCS to tell creator where it installed additional tools that it came with. This is useful for e.g. git on windows which ships with a nice bunch of unix tools. Change-Id: Ibc5f2fb57307bfadad140bd57d83917e56d57153 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -33,6 +33,7 @@
|
|||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
|
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
|
#include <QStringList>
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class Core::IVersionControl::TopicCache
|
\class Core::IVersionControl::TopicCache
|
||||||
@@ -76,6 +77,11 @@ QString IVersionControl::vcsMakeWritableText() const
|
|||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QStringList IVersionControl::additionalToolsPath() const
|
||||||
|
{
|
||||||
|
return QStringList();
|
||||||
|
}
|
||||||
|
|
||||||
QString IVersionControl::vcsTopic(const QString &topLevel)
|
QString IVersionControl::vcsTopic(const QString &topLevel)
|
||||||
{
|
{
|
||||||
return m_topicCache ? m_topicCache->topic(topLevel) : QString();
|
return m_topicCache ? m_topicCache->topic(topLevel) : QString();
|
||||||
|
@@ -198,6 +198,12 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual QString vcsMakeWritableText() const;
|
virtual QString vcsMakeWritableText() const;
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* Return a list of paths where tools that came with the VCS may be installed.
|
||||||
|
* This is helpful on windows where e.g. git comes with a lot of nice unix tools.
|
||||||
|
*/
|
||||||
|
virtual QStringList additionalToolsPath() const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void repositoryChanged(const QString &repository);
|
void repositoryChanged(const QString &repository);
|
||||||
void filesChanged(const QStringList &files);
|
void filesChanged(const QStringList &files);
|
||||||
|
Reference in New Issue
Block a user