| 380 | } |
| 381 | |
| 382 | VcsJob* 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 | |
| 393 | KDevelop::VcsJob* GitPlugin::status(const QList<QUrl>& localLocations, KDevelop::IBasicVersionControl::RecursionMode recursion) |
| 394 | { |