#include "gitremote.h" #include 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())); }