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

Method status

plugins/git/gitplugin.cpp:393–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393KDevelop::VcsJob* GitPlugin::status(const QList<QUrl>& localLocations, KDevelop::IBasicVersionControl::RecursionMode recursion)
394{
395 if (localLocations.empty())
396 return makeVcsErrorJob(i18n("Did not specify the list of files"), this, OutputJob::Verbose);
397
398 DVcsJob* job = new GitJob(urlDir(localLocations), this, OutputJob::Silent);
399 job->setType(VcsJob::Status);
400
401 if(m_oldVersion) {
402 *job << "git" << "ls-files" << "-t" << "-m" << "-c" << "-o" << "-d" << "-k" << "--directory";
403 connect(job, &DVcsJob::readyForParsing, this, &GitPlugin::parseGitStatusOutput_old);
404 } else {
405 *job << "git" << "status" << "--porcelain";
406 job->setIgnoreError(true);
407 connect(job, &DVcsJob::readyForParsing, this, &GitPlugin::parseGitStatusOutput);
408 }
409 *job << "--" << (recursion == IBasicVersionControl::Recursive ? localLocations : preventRecursion(localLocations));
410
411 return job;
412}
413
414VcsJob* GitPlugin::diff(const QUrl& fileOrDirectory, const KDevelop::VcsRevision& srcRevision, const KDevelop::VcsRevision& dstRevision,
415 IBasicVersionControl::RecursionMode recursion)

Callers 15

resultMethod · 0.45
fetchStatusesForUrlsMethod · 0.45
branchNameReadyMethod · 0.45
diffReadyMethod · 0.45
applySelectedMethod · 0.45
runSynchronouslyFunction · 0.45
emptyOutputFunction · 0.45
allCommitsMethod · 0.45
initBranchHashMethod · 0.45
getLsFilesMethod · 0.45
commitActiveProjectMethod · 0.45
addFilesMethod · 0.45

Calls 5

preventRecursionFunction · 0.85
emptyMethod · 0.80
setIgnoreErrorMethod · 0.80
urlDirFunction · 0.70
setTypeMethod · 0.45

Tested by 5

addFilesMethod · 0.36
commitFilesMethod · 0.36
testMergeMethod · 0.36
resultMethod · 0.36
resultMethod · 0.36