| 916 | } |
| 917 | |
| 918 | VcsJob* GitPlugin::branch(const QUrl& repository, const KDevelop::VcsRevision& rev, const QString& branchName) |
| 919 | { |
| 920 | Q_ASSERT(!branchName.isEmpty()); |
| 921 | |
| 922 | auto* job = new GitJob(urlDir(repository), this); |
| 923 | *job << "git" << "branch" << "--" << branchName; |
| 924 | |
| 925 | if(rev.revisionType() == VcsRevision::Special && rev.specialType() == VcsRevision::Head) { |
| 926 | *job << "HEAD"; |
| 927 | } else if(!rev.prettyValue().isEmpty()) { |
| 928 | *job << rev.revisionValue().toString(); |
| 929 | } |
| 930 | return job; |
| 931 | } |
| 932 | |
| 933 | VcsJob* GitPlugin::deleteBranch(const QUrl& repository, const QString& branchName) |
| 934 | { |