SlHelpers
SlGit::TreeBuilder Class Reference

The TreeEntry represents a libgit2's tree builder. More...

#include <Tree.h>

Public Member Functions

bool insert (const std::filesystem::path &file, const Blob &blob) const noexcept
 Add file to this TreeBuilder, having blob as a content.
 
bool remove (const std::filesystem::path &file) const noexcept
 Remove file from this TreeBuilder.
 
bool clear () const noexcept
 Wipe out this TreeBuilder.
 
std::optional< Treewrite (const Repo &repo) const noexcept
 Write this TreeBuilder to the repo and return the built Tree.
 
size_t entryCount () const noexcept
 Get count of entries in this TreeBuilder.
 
const git_tree_entry * get (const std::filesystem::path &file) const noexcept
 Get a tree entry for file in this TreeBuilder.
 
GitTy * treeBuilder () const noexcept
 Get the stored pointer to libgit2's git_treebuilder.
 
 operator GitTy * () const noexcept
 Alias for treeEntry() – implicit conversion.
 

Friends

class Repo
 

Detailed Description

The TreeEntry represents a libgit2's tree builder.


The documentation for this class was generated from the following file: