libgit2_d.tree

Undocumented in source.

Members

Aliases

git_treebuilder_filter_cb
alias git_treebuilder_filter_cb = int function(const(libgit2_d.types.git_tree_entry)* entry, void* payload)

Callback for git_treebuilder_filter

git_treewalk_cb
alias git_treewalk_cb = int function(const(char)* root, const(libgit2_d.types.git_tree_entry)* entry, void* payload)

Callback for the tree traversal method

Enums

GIT_TREEWALK_PRE
anonymousenum GIT_TREEWALK_PRE
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_TREE_UPDATE_UPSERT
anonymousenum GIT_TREE_UPDATE_UPSERT
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_tree_update_t
enum git_tree_update_t

The kind of update to perform

git_treewalk_mode
enum git_treewalk_mode

Tree traversal modes

Functions

git_tree_create_updated
int git_tree_create_updated(libgit2_d.oid.git_oid* out_, libgit2_d.types.git_repository* repo, libgit2_d.types.git_tree* baseline, size_t nupdates, const(.git_tree_update)* updates)

Create a tree based on another one with the specified modifications

git_tree_dup
int git_tree_dup(libgit2_d.types.git_tree** out_, libgit2_d.types.git_tree* source)

Create an in-memory copy of a tree. The copy must be explicitly free'd or it will leak.

git_tree_entry_byid
const(libgit2_d.types.git_tree_entry)* git_tree_entry_byid(const(libgit2_d.types.git_tree)* tree, const(libgit2_d.oid.git_oid)* id)

Lookup a tree entry by SHA value.

git_tree_entry_byindex
const(libgit2_d.types.git_tree_entry)* git_tree_entry_byindex(const(libgit2_d.types.git_tree)* tree, size_t idx)

Lookup a tree entry by its position in the tree

git_tree_entry_byname
const(libgit2_d.types.git_tree_entry)* git_tree_entry_byname(const(libgit2_d.types.git_tree)* tree, const(char)* filename)

Lookup a tree entry by its filename

git_tree_entry_bypath
int git_tree_entry_bypath(libgit2_d.types.git_tree_entry** out_, const(libgit2_d.types.git_tree)* root, const(char)* path)

Retrieve a tree entry contained in a tree or in any of its subtrees, given its relative path.

git_tree_entry_cmp
int git_tree_entry_cmp(const(libgit2_d.types.git_tree_entry)* e1, const(libgit2_d.types.git_tree_entry)* e2)

Compare two tree entries

git_tree_entry_dup
int git_tree_entry_dup(libgit2_d.types.git_tree_entry** dest, const(libgit2_d.types.git_tree_entry)* source)

Duplicate a tree entry

git_tree_entry_filemode
libgit2_d.types.git_filemode_t git_tree_entry_filemode(const(libgit2_d.types.git_tree_entry)* entry)

Get the UNIX file attributes of a tree entry

git_tree_entry_filemode_raw
libgit2_d.types.git_filemode_t git_tree_entry_filemode_raw(const(libgit2_d.types.git_tree_entry)* entry)

Get the raw UNIX file attributes of a tree entry

git_tree_entry_free
void git_tree_entry_free(libgit2_d.types.git_tree_entry* entry)

Free a user-owned tree entry

git_tree_entry_id
const(libgit2_d.oid.git_oid)* git_tree_entry_id(const(libgit2_d.types.git_tree_entry)* entry)

Get the id of the object pointed by the entry

git_tree_entry_name
const(char)* git_tree_entry_name(const(libgit2_d.types.git_tree_entry)* entry)

Get the filename of a tree entry

git_tree_entry_to_object
int git_tree_entry_to_object(libgit2_d.types.git_object** object_out, libgit2_d.types.git_repository* repo, const(libgit2_d.types.git_tree_entry)* entry)

Convert a tree entry to the git_object it points to.

git_tree_entry_type
libgit2_d.types.git_object_t git_tree_entry_type(const(libgit2_d.types.git_tree_entry)* entry)

Get the type of the object pointed by the entry

git_tree_entrycount
size_t git_tree_entrycount(const(libgit2_d.types.git_tree)* tree)

Get the number of entries listed in a tree

git_tree_free
void git_tree_free(libgit2_d.types.git_tree* tree)

Close an open tree

git_tree_id
const(libgit2_d.oid.git_oid)* git_tree_id(const(libgit2_d.types.git_tree)* tree)

Get the id of a tree.

git_tree_lookup
int git_tree_lookup(libgit2_d.types.git_tree** out_, libgit2_d.types.git_repository* repo, const(libgit2_d.oid.git_oid)* id)

Lookup a tree object from the repository.

git_tree_lookup_prefix
int git_tree_lookup_prefix(libgit2_d.types.git_tree** out_, libgit2_d.types.git_repository* repo, const(libgit2_d.oid.git_oid)* id, size_t len)

Lookup a tree object from the repository, given a prefix of its identifier (short id).

git_tree_owner
libgit2_d.types.git_repository* git_tree_owner(const(libgit2_d.types.git_tree)* tree)

Get the repository that contains the tree.

git_tree_walk
int git_tree_walk(const(libgit2_d.types.git_tree)* tree, .git_treewalk_mode mode, .git_treewalk_cb callback, void* payload)

Traverse the entries in a tree and its subtrees in post or pre order.

git_treebuilder_clear
int git_treebuilder_clear(libgit2_d.types.git_treebuilder* bld)

Clear all the entires in the builder

git_treebuilder_entrycount
size_t git_treebuilder_entrycount(libgit2_d.types.git_treebuilder* bld)

Get the number of entries listed in a treebuilder

git_treebuilder_filter
int git_treebuilder_filter(libgit2_d.types.git_treebuilder* bld, .git_treebuilder_filter_cb filter, void* payload)

Selectively remove entries in the tree

git_treebuilder_free
void git_treebuilder_free(libgit2_d.types.git_treebuilder* bld)

Free a tree builder

git_treebuilder_get
const(libgit2_d.types.git_tree_entry)* git_treebuilder_get(libgit2_d.types.git_treebuilder* bld, const(char)* filename)

Get an entry from the builder from its filename

git_treebuilder_insert
int git_treebuilder_insert(const(libgit2_d.types.git_tree_entry)** out_, libgit2_d.types.git_treebuilder* bld, const(char)* filename, const(libgit2_d.oid.git_oid)* id, libgit2_d.types.git_filemode_t filemode)

Add or update an entry to the builder

git_treebuilder_new
int git_treebuilder_new(libgit2_d.types.git_treebuilder** out_, libgit2_d.types.git_repository* repo, const(libgit2_d.types.git_tree)* source)

Create a new tree builder.

git_treebuilder_remove
int git_treebuilder_remove(libgit2_d.types.git_treebuilder* bld, const(char)* filename)

Remove an entry from the builder by its filename

git_treebuilder_write
int git_treebuilder_write(libgit2_d.oid.git_oid* id, libgit2_d.types.git_treebuilder* bld)

Write the contents of the tree builder as a tree object

git_treebuilder_write_with_buffer
int git_treebuilder_write_with_buffer(libgit2_d.oid.git_oid* oid, libgit2_d.types.git_treebuilder* bld, libgit2_d.buffer.git_buf* tree)

Write the contents of the tree builder as a tree object using a shared git_buf.

Structs

git_tree_update
struct git_tree_update

An action to perform during the update of a tree

Meta