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

The TreeEntry represents one git tree entry. More...

#include <Tree.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.
std::string name () const noexcept
 Get name of this TreeEntry.
git_object_t type () const noexcept
 Get type of this TreeEntry (GIT_OBJECT_TREE, GIT_OBJECT_BLOB, ...).
git_filemode_t filemode () const noexcept
 Get permissions of this TreeEntry.
std::optional< std::string > catFile (const Repo &repo) const noexcept
 Cat this TreeEntry.
GitTy * treeEntry () const noexcept
 Get the stored pointer to libgit2's git_tree_entry.
 operator GitTy * () const noexcept
 Alias for treeEntry().

Friends

class Tree

Detailed Description

The TreeEntry represents one git tree entry.


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