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

Method reset

plugins/git/gitplugin.cpp:455–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453
454
455KDevelop::VcsJob * GitPlugin::reset ( const QList<QUrl>& localLocations, KDevelop::IBasicVersionControl::RecursionMode recursion )
456{
457 if(localLocations.isEmpty() )
458 return makeVcsErrorJob(i18n("Could not reset changes (empty list of paths)"), this, OutputJob::Verbose);
459
460 DVcsJob* job = new GitJob(dotGitDirectory(localLocations.front()), this);
461 job->setType(VcsJob::Reset);
462 *job << "git" << "reset" << "--";
463 *job << (recursion == IBasicVersionControl::Recursive ? localLocations : preventRecursion(localLocations));
464 return job;
465}
466
467KDevelop::VcsJob * GitPlugin::apply(const KDevelop::VcsDiff& diff, const ApplyParams applyTo)
468{

Callers 4

unstageSelectedFilesMethod · 0.45
TemplatePreviewMethod · 0.45
initMethod · 0.45

Calls 4

dotGitDirectoryFunction · 0.85
preventRecursionFunction · 0.85
isEmptyMethod · 0.45
setTypeMethod · 0.45

Tested by 1

initMethod · 0.36