Tree is a representation of a git tree.
More...
#include <Tree.h>
|
|
size_t | entryCount () const noexcept |
| | Get count of entries in this Tree.
|
|
bool | walk (const WalkCallback &CB, const git_treewalk_mode &mode=GIT_TREEWALK_PRE) const |
| | Walk this Tree and call CB for every entry.
|
|
std::optional< TreeEntry > | treeEntryByPath (const std::string &path) const noexcept |
| | Get an entry corresponding to path.
|
|
TreeEntry | treeEntryByIndex (size_t idx) const noexcept |
| | Get an entry on the idx-th position.
|
|
std::optional< std::string > | catFile (const std::string &file) const noexcept |
| | Cat a file in this Tree.
|
|
GitTy * | tree () const noexcept |
| | Get the stored pointer to libgit2's git_tree.
|
| git_object * | object () const noexcept override |
| | Get a pointer to the generic git_object.
|
|
| operator git_tree * () const noexcept |
| | Alias for typed().
|
|
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).
|
|
|
class | Commit |
|
class | Repo |
|
class | Tag |
|
|
git_tree * | typed () const noexcept |
| | Get the stored pointer typed to one of libgit2's types.
|
|
| Object (const Repo &repo) |
| | Constuct a new Object.
|
Tree is a representation of a git tree.
◆ WalkCallback
Initial value:const std::function<int(const std::string &root,
The TreeEntry represents one git tree entry.
Definition Tree.h:107
A callback for walk().
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