SlHelpers
Loading...
Searching...
No Matches
SlGit::Tag Class Reference

Tag is a representation of a git tag. More...

#include <Tag.h>

Inheritance diagram for SlGit::Tag:
SlGit::TypedObject< git_tag > SlGit::Object

Public Member Functions

const git_oid * targetId () const noexcept
 Get the OID of the target of this Tag.
std::string targetIdStr () const noexcept
 Get the SHA of the target of this Tag.
git_object_t targetType () const noexcept
 Get the type of the target of this Tag (GIT_OBJECT_COMMIT, ...).
std::string name () const noexcept
 Get the name of this Tag (the tag proper).
const git_signature * tagger () const noexcept
 Get the tagger of this Tag.
std::string message () const noexcept
 Get the tag message of this Tag.
std::variant< std::monostate, Commit, Tree, Blobpeel () const noexcept
 Peel this Tag until the underlaying object is found and return that.
GitTy * tag () const noexcept
 Get the stored pointer to libgit2's git_tag.
Public Member Functions inherited from SlGit::TypedObject< git_tag >
git_object * object () const noexcept override
 Get a pointer to the generic git_object.
 operator git_tag * () const noexcept
 Alias for typed().
Public Member Functions inherited from SlGit::Object
const git_oid * id () const noexcept
 Get OID (SHA) of this Object.
std::string idStr () const noexcept
 Get OID (SHA) of this Object – as a string.
git_object_t type () const noexcept
 Get Type of this Object.
std::string typeStr () const noexcept
 Get Type of this Object – as a string.
const Reporepo () const
 Get the Repo this Object lives in.
bool operator== (const Object &other) const noexcept
 Compare two Objects (their SHAs).
bool operator!= (const Object &other) const noexcept
 Compare two Objects (their SHAs).

Friends

class Repo

Additional Inherited Members

Protected Member Functions inherited from SlGit::TypedObject< git_tag >
git_tag * typed () const noexcept
 Get the stored pointer typed to one of libgit2's types.
Protected Member Functions inherited from SlGit::Object
 Object (const Repo &repo)
 Constuct a new Object.

Detailed Description

Tag is a representation of a git tag.


The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/slhelpers-20260428.f233ce9-build/slhelpers-20260428.f233ce9/include/git/Tag.h