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

Method add

plugins/git/gitplugin.cpp:382–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382VcsJob* GitPlugin::add(const QList<QUrl>& localLocations, KDevelop::IBasicVersionControl::RecursionMode recursion)
383{
384 if (localLocations.empty())
385 return makeVcsErrorJob(i18n("Did not specify the list of files"), this, OutputJob::Verbose);
386
387 DVcsJob* job = new GitJob(dotGitDirectory(localLocations.front()), this);
388 job->setType(VcsJob::Add);
389 *job << "git" << "add" << "--" << (recursion == IBasicVersionControl::Recursive ? localLocations : preventRecursion(localLocations));
390 return job;
391}
392
393KDevelop::VcsJob* GitPlugin::status(const QList<QUrl>& localLocations, KDevelop::IBasicVersionControl::RecursionMode recursion)
394{

Callers 15

testQListContainerMethod · 0.45
testQListPODMethod · 0.45
testKTextEditorTypesMethod · 0.45
testKDevelopTypesMethod · 0.45
stageSelectedFilesMethod · 0.45
addFilesMethod · 0.45
commitFilesMethod · 0.45
testMergeMethod · 0.45
addWatchMethod · 0.45
testVariablesWatchesMethod · 0.45

Calls 4

dotGitDirectoryFunction · 0.85
preventRecursionFunction · 0.85
emptyMethod · 0.80
setTypeMethod · 0.45

Tested by 15

testQListContainerMethod · 0.36
testQListPODMethod · 0.36
testKTextEditorTypesMethod · 0.36
testKDevelopTypesMethod · 0.36
addFilesMethod · 0.36
commitFilesMethod · 0.36
testMergeMethod · 0.36
testVariablesWatchesMethod · 0.36