| 453 | |
| 454 | |
| 455 | KDevelop::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 | |
| 467 | KDevelop::VcsJob * GitPlugin::apply(const KDevelop::VcsDiff& diff, const ApplyParams applyTo) |
| 468 | { |