|
SlHelpers
|
Git Object class – base for Blob, Commit, Tag, Tree. More...
#include <Object.h>
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 Repo & | repo () 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. | |
|
inlinevirtualnoexcept |
Get the libgit2's git_object pointer of this Object.
Reimplemented in SlGit::TypedObject< T >, SlGit::TypedObject< git_blob >, SlGit::TypedObject< git_commit >, SlGit::TypedObject< git_tag >, and SlGit::TypedObject< git_tree >.