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

Method revisionFile

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

Source from the content-addressed store, hash-verified

167}
168
169std::optional<RevisionFiles> GitCache::revisionFile(const QString &sha1, const QString &sha2) const
170{
171 QMutexLocker lock(&mRevisionsMutex);
172
173 const auto iter = mRevisionFilesMap.constFind(qMakePair(sha1, sha2));
174
175 if (iter != mRevisionFilesMap.cend())
176 return *iter;
177
178 return std::nullopt;
179}
180
181void GitCache::clearReferences()
182{

Callers 10

showWarningMergeMethod · 0.80
showPullConflictMethod · 0.80
cherryPickCommitMethod · 0.80
resetFileMethod · 0.80
configureMethod · 0.80
commitChangesMethod · 0.80
configureMethod · 0.80
commitChangesMethod · 0.80
insertFilesMethod · 0.80

Calls 1

cendMethod · 0.80

Tested by

no test coverage detected