forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.3'
Change-Id: I126f3a05212a3d5df78812e66285bc9e8078360b
This commit is contained in:
@@ -94,21 +94,6 @@ public:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
VcsInfo *findUpInCache(const QString &directory)
|
||||
{
|
||||
VcsInfo *result = nullptr;
|
||||
const QChar slash = QLatin1Char('/');
|
||||
// Split the path, trying to find the matching repository. We start from the reverse
|
||||
// in order to detected nested repositories correctly (say, a git checkout under SVN).
|
||||
for (int pos = directory.size() - 1; pos >= 0; pos = directory.lastIndexOf(slash, pos) - 1) {
|
||||
const QString directoryPart = directory.left(pos);
|
||||
result = findInCache(directoryPart);
|
||||
if (result)
|
||||
break;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
void clearCache()
|
||||
{
|
||||
m_cachedMatches.clear();
|
||||
|
||||
Reference in New Issue
Block a user