| 406 | } |
| 407 | |
| 408 | void CGitStatusCache::RemoveCacheForPath(const CTGitPath& path) |
| 409 | { |
| 410 | // Stop the crawler starting on a new folder |
| 411 | CCrawlInhibitor crawlInhibit(&m_folderCrawler); |
| 412 | CCachedDirectory* dirtoremove = nullptr; |
| 413 | |
| 414 | auto itMap = m_directoryCache.find(path); |
| 415 | if ((itMap != m_directoryCache.end())&&(itMap->second)) |
| 416 | dirtoremove = itMap->second; |
| 417 | if (!dirtoremove) |
| 418 | return; |
| 419 | ATLASSERT(path.IsEquivalentToWithoutCase(dirtoremove->m_directoryPath)); |
| 420 | RemoveCacheForDirectory(dirtoremove, path); |
| 421 | } |
| 422 | |
| 423 | CCachedDirectory * CGitStatusCache::GetDirectoryCacheEntry(const CTGitPath& path) |
| 424 | { |
no test coverage detected