MCPcopy Create free account
hub / github.com/TortoiseGit/TortoiseGit / RemoveCacheForPath

Method RemoveCacheForPath

src/TGitCache/GITStatusCache.cpp:408–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408void 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
423CCachedDirectory * CGitStatusCache::GetDirectoryCacheEntry(const CTGitPath& path)
424{

Callers 3

CommandThreadFunction · 0.80
WorkerThreadMethod · 0.80
RefreshMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected