12345678910111213141516171819 |
- #include "gitremote.h"
- #include <git2/remote.h>
- GitRemote::GitRemote(git_remote* raw, GitRepository* parent) : GitBase(raw, parent)
- {
- }
- GitRemote* GitRemote::fromName(const QString& remoteName, GitRepository* parent)
- {
- git_remote* remote = nullptr;
- git_remote_lookup(&remote, parent->raw(), remoteName.toUtf8().data());
- return new GitRemote(remote, parent);
- }
- QString GitRemote::name() const
- {
- return QString(git_remote_name(raw()));
- }
|