| 100 | } |
| 101 | |
| 102 | static GitUtils::Branch parseRemoteBranch(QLatin1String raw) |
| 103 | { |
| 104 | static const int len = sizeof("refs/remotes/") - 1; |
| 105 | int indexofRemote = raw.indexOf(u'/', len); |
| 106 | return GitUtils::Branch{.name = raw.mid(len), .remote = raw.mid(len, indexofRemote - len), .refType = GitUtils::Remote, .lastCommit = QString()}; |
| 107 | } |
| 108 | |
| 109 | QList<GitUtils::Branch> GitUtils::getAllBranchesAndTags(const QString &repo, RefType ref) |
| 110 | { |
no test coverage detected