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

Blob is a representation of a git blob. More...

#include <Blob.h>

Inheritance diagram for SlGit::Blob:
SlGit::TypedObject< git_blob > SlGit::Object

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 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
class Tag

Additional Inherited Members

Protected Member Functions inherited from SlGit::TypedObject< git_blob >
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.

Detailed Description

Blob is a representation of a git blob.


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