MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / checkSha

Method checkSha

3rdparty/unioncode-GitQlient/src/cache/GitCache.cpp:477–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477bool GitCache::checkSha(const QString &originalSha, const QString &currentSha) const
478{
479 if (originalSha == currentSha)
480 return true;
481
482 if (const auto iter = mCommitsMap.find(currentSha); iter != mCommitsMap.cend())
483 return checkSha(originalSha, iter->firstParent());
484
485 return false;
486}
487
488void GitCache::clearInternalData()
489{

Callers

nothing calls this directly

Calls 3

cendMethod · 0.80
firstParentMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected