From c1739d5c4d55401a03462467ed446763924be844 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Sat, 5 Dec 2020 10:19:53 +0100 Subject: Version Control plugin: allow plugins to return repository root Currently plugins `fileName()` only return path file extension. This changes allows plugins to return the absolute file path to their repository root. CCBUG: 430024 --- src/views/versioncontrol/kversioncontrolplugin.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/views/versioncontrol/kversioncontrolplugin.h') diff --git a/src/views/versioncontrol/kversioncontrolplugin.h b/src/views/versioncontrol/kversioncontrolplugin.h index 0de305d14..a8894ac17 100644 --- a/src/views/versioncontrol/kversioncontrolplugin.h +++ b/src/views/versioncontrol/kversioncontrolplugin.h @@ -143,6 +143,12 @@ public: */ virtual QString fileName() const = 0; + /** + * Returns the path of the local repository root for the versionned directory + * Returns an emtpy QString when directory is not part of a working copy + */ + virtual QString localRepositoryRoot(const QString& directory) const; + /** * Is invoked whenever the version control * information will get retrieved for the directory -- cgit v1.3