diff options
Diffstat (limited to 'src/plugins/coreplugin/iversioncontrol.h')
-rw-r--r-- | src/plugins/coreplugin/iversioncontrol.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/iversioncontrol.h b/src/plugins/coreplugin/iversioncontrol.h index a78775bae3..eb880e7c70 100644 --- a/src/plugins/coreplugin/iversioncontrol.h +++ b/src/plugins/coreplugin/iversioncontrol.h @@ -93,6 +93,17 @@ public: virtual Id id() const = 0; /*! + * \brief isVcsFileOrDirectory + * \param fileName + * \return True if filename is a file or directory that is maintained by the + * version control system. + * + * It will return true only for exact matches of the name, not for e.g. files in a + * directory owned by the version control system (e.g. .git/control). + */ + virtual bool isVcsFileOrDirectory(const Utils::FileName &fileName) const = 0; + + /*! * Returns whether files in this directory should be managed with this * version control. * If \a topLevel is non-null, it should return the topmost directory, @@ -232,6 +243,9 @@ public: { } ~TestVersionControl(); + bool isVcsFileOrDirectory(const Utils::FileName &fileName) const final + { Q_UNUSED(fileName); return false; } + void setManagedDirectories(const QHash<QString, QString> &dirs); void setManagedFiles(const QSet<QString> &files); |