| 1731 | } |
| 1732 | |
| 1733 | VcsJob* GitPlugin::update(const QList<QUrl>& localLocations, const KDevelop::VcsRevision& rev, IBasicVersionControl::RecursionMode recursion) |
| 1734 | { |
| 1735 | if(rev.revisionType()==VcsRevision::Special && rev.revisionValue().value<VcsRevision::RevisionSpecialType>()==VcsRevision::Head) { |
| 1736 | return pull(VcsLocation(), localLocations.first()); |
| 1737 | } else { |
| 1738 | auto* job = new GitJob(urlDir(localLocations.first()), this); |
| 1739 | { |
| 1740 | //Probably we should check first if origin is the proper remote we have to use but as a first attempt it works |
| 1741 | *job << "git" << "checkout" << rev.revisionValue().toString() << "--"; |
| 1742 | *job << (recursion == IBasicVersionControl::Recursive ? localLocations : preventRecursion(localLocations)); |
| 1743 | return job; |
| 1744 | } |
| 1745 | } |
| 1746 | } |
| 1747 | |
| 1748 | void GitPlugin::setupCommitMessageEditor(const QUrl& localLocation, KTextEdit* editor) const |
| 1749 | { |
no test coverage detected