| 477 | } |
| 478 | |
| 479 | CCachedDirectory * 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 | |
| 493 | CStatusCacheEntry CGitStatusCache::GetStatusForPath(const CTGitPath& path, DWORD flags) |
| 494 | { |
no test coverage detected