|
SlHelpers
|
Blob is a representation of a git blob. More...
#include <Blob.h>
Public Member Functions | |
| std::string | content () const noexcept |
| Get the content of this Blob (as a string) | |
| std::string_view | contentView () const noexcept |
| Get the content of this Blob (as a string_view) | |
| GitTy * | blob () const noexcept |
| Get the stored pointer to libgit2's git_blob. | |
Public Member Functions inherited from SlGit::TypedObject< git_blob > | |
| git_object * | object () const noexcept override |
| Get a pointer to the generic git_object. | |
| operator git_blob * () 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 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) | |
Friends | |
| class | Repo |
| class | Tag |
Additional Inherited Members | |
Protected Member Functions inherited from SlGit::TypedObject< git_blob > | |
| TypedObject (const Repo &repo, git_blob *typed) noexcept | |
| Construct a new TypedObject. | |
| git_blob * | 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. | |
Blob is a representation of a git blob.