Vcs: Replace findRepositoryForDirectory

By some function findRepositoryForFile operating on any file and
using FilePath.

Change-Id: I91b8aa38b1c6b33993b9b790fbc2ff4d378ad8a8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2021-07-29 17:54:14 +02:00
parent edcedabed9
commit 56520c770c
9 changed files with 19 additions and 23 deletions

View File

@@ -125,7 +125,8 @@ inline bool operator!=(const VcsBasePluginState &s1, const VcsBasePluginState &s
// systems that do not have directories like "CVS" in each managed subdirectory
// but have a directory at the top of the repository like ".git" containing
// a well known file. See implementation for gory details.
VCSBASE_EXPORT QString findRepositoryForDirectory(const QString &dir, const QString &checkFile);
VCSBASE_EXPORT Utils::FilePath findRepositoryForFile(const Utils::FilePath &fileOrDir,
const QString &checkFile);
// Returns SSH prompt configured in settings.
VCSBASE_EXPORT QString sshPrompt();