SlHelpers
SlGit::Reference Class Reference

Reference is a representation of a git reference. More...

#include <Misc.h>

Public Member Functions

const git_oid * target () const noexcept
 Get the target of a Reference.
 
const git_oid * targetPeel () const noexcept
 Get the peeled target of a Reference.
 
std::string symbolicTarget () const noexcept
 Get the target of a symbolic Reference.
 
git_reference_t type () const noexcept
 Get type of this Reference (GIT_REFERENCE_DIRECT, GIT_REFERENCE_SYMBOLIC)
 
std::string name () const noexcept
 Get name of this Reference.
 
std::optional< Referenceresolve () const noexcept
 Resolve a symbolic reference to a direct reference.
 
GitTy * ref () const noexcept
 Get the stored pointer to libgit2's git_reference.
 
 operator GitTy * () const noexcept
 Alias for ref() – implicit conversion.
 

Friends

class Repo
 

Detailed Description

Reference is a representation of a git reference.


The documentation for this class was generated from the following file: