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

Method GetDirectoryCacheEntryNoCreate

src/TGitCache/GITStatusCache.cpp:479–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477}
478
479CCachedDirectory * CGitStatusCache::GetDirectoryCacheEntryNoCreate(const CTGitPath& path)
480{
481 ATLASSERT(path.IsDirectory() || !PathFileExists(path.GetWinPath()));
482
483 CAutoReadLock readLock(m_guardcacheddirectories);
484 auto itMap = m_directoryCache.find(path);
485 if(itMap != m_directoryCache.end())
486 {
487 // We've found this directory in the cache
488 return itMap->second;
489 }
490 return nullptr;
491}
492
493CStatusCacheEntry CGitStatusCache::GetStatusForPath(const CTGitPath& path, DWORD flags)
494{

Callers 3

CommandThreadFunction · 0.80
GetStatusCallbackMethod · 0.80

Calls 4

GetWinPathMethod · 0.80
IsDirectoryMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected