MCPcopy Create free account
hub / github.com/KDE/kdevelop / diff

Method diff

plugins/git/gitplugin.cpp:414–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414VcsJob* GitPlugin::diff(const QUrl& fileOrDirectory, const KDevelop::VcsRevision& srcRevision, const KDevelop::VcsRevision& dstRevision,
415 IBasicVersionControl::RecursionMode recursion)
416{
417 DVcsJob* job = static_cast<DVcsJob*>(diff(fileOrDirectory, srcRevision, dstRevision));
418 *job << "--";
419 if (recursion == IBasicVersionControl::Recursive) {
420 *job << fileOrDirectory;
421 } else {
422 *job << preventRecursion(QList<QUrl>() << fileOrDirectory);
423 }
424 return job;
425}
426
427KDevelop::VcsJob * GitPlugin::diff(const QUrl& repoPath, const KDevelop::VcsRevision& srcRevision, const KDevelop::VcsRevision& dstRevision)
428{

Callers 4

updateDiffMethod · 0.45
diffReadyMethod · 0.45
applyMethod · 0.45
testDiffMethod · 0.45

Calls 9

preventRecursionFunction · 0.85
dotGitDirectoryFunction · 0.85
revisionIntervalFunction · 0.85
revisionTypeMethod · 0.80
specialTypeMethod · 0.80
revisionValueMethod · 0.80
setTypeMethod · 0.45
toStringMethod · 0.45
isEmptyMethod · 0.45

Tested by 1

testDiffMethod · 0.36