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:
Tobias Hunger
2014-03-05 10:56:52 +01:00
parent 83ad1724f4
commit 1b83666d31
2 changed files with 12 additions and 0 deletions

View File

@@ -33,6 +33,7 @@
#include <utils/qtcassert.h>
#include <QFileInfo>
#include <QStringList>
/*!
\class Core::IVersionControl::TopicCache
@@ -76,6 +77,11 @@ QString IVersionControl::vcsMakeWritableText() const
return QString();
}
QStringList IVersionControl::additionalToolsPath() const
{
return QStringList();
}
QString IVersionControl::vcsTopic(const QString &topLevel)
{
return m_topicCache ? m_topicCache->topic(topLevel) : QString();

View File

@@ -198,6 +198,12 @@ public:
*/
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:
void repositoryChanged(const QString &repository);
void filesChanged(const QStringList &files);