┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/versioncontrol/kversioncontrolplugin.h
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2020-12-05 10:19:53 +0100
committerElvis Angelaccio <[email protected]>2020-12-27 17:18:40 +0000
commitc1739d5c4d55401a03462467ed446763924be844 (patch)
treee45333d7a87a763238f6bb7df5af4c7ae784de82 /src/views/versioncontrol/kversioncontrolplugin.h
parentc6cdf4126afb2d11e0d2621b55e5621b2cf5bab1 (diff)
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
Diffstat (limited to 'src/views/versioncontrol/kversioncontrolplugin.h')
-rw-r--r--src/views/versioncontrol/kversioncontrolplugin.h6
1 files changed, 6 insertions, 0 deletions
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
@@ -144,6 +144,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
* \p directory. It is assured that the directory