SlHelpers
SlGit::Object Class Reference

Git Object class – base for Blob, Commit, Tag, Tree. More...

#include <Object.h>

Inheritance diagram for SlGit::Object:
SlGit::TypedObject< T > SlGit::TypedObject< git_blob > SlGit::TypedObject< git_commit > SlGit::TypedObject< git_tag > SlGit::TypedObject< git_tree > SlGit::Blob SlGit::Commit SlGit::Tag SlGit::Tree

Public Member Functions

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.
 
virtual git_object * object () const noexcept
 Get the libgit2's git_object pointer of this Object.
 
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)
 

Protected Member Functions

 Object (const Repo &repo)
 Constuct a new Object.
 

Detailed Description

Git Object class – base for Blob, Commit, Tag, Tree.


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