#include "gittag.h" #include GitTag::GitTag() : GitBaseOid(nullptr, nullptr) ,m_targetId(nullptr, nullptr) { } GitTag::GitTag(git_tag *raw, GitRepository *parent) : GitBaseOid(raw, parent) ,m_targetId(nullptr, nullptr) { if(raw == nullptr) { return; } const git_oid* oid = git_tag_id(raw); m_oid = GitOid(oid, parent); m_name = QString::fromUtf8(git_tag_name(raw)); m_targetId = GitOid(git_tag_target_id(m_raw), repository()); } GitOid GitTag::targetId() const { return m_targetId; }