forked from qt-creator/qt-creator
Version control: Improve detection.
Merge managesDirectory() and findTopLevelForDirectory() into one giving managesDirectory() an optional topLevel parameter. This removes the need to go up the directory hierarchy twice when checking for Merurial or git and also saves some checks for CVS/Subversion. VCSManager: Check cache in reverse order starting out with the full path first to improve handling of nested repositories. Rubber-stamped-by: con Acked-by: dt
This commit is contained in:
@@ -46,8 +46,7 @@ public:
|
||||
|
||||
virtual QString displayName() const;
|
||||
|
||||
bool managesDirectory(const QString &directory) const;
|
||||
virtual QString findTopLevelForDirectory(const QString &directory) const;
|
||||
virtual bool managesDirectory(const QString &directory, QString *topLevel) const;
|
||||
|
||||
virtual bool supportsOperation(Operation operation) const;
|
||||
virtual bool vcsOpen(const QString &fileName);
|
||||
|
||||
Reference in New Issue
Block a user