libgit2

tree

Version:
Git tree parsing, loading routines

Functions

Lookup a tree object from the repository The generated tree object is owned by the revision repo and shall not be freed by the user.

Create a new in-memory git_tree

Get the id of a tree

Get the number of entries listed in a tree

Lookup a tree entry by its filename

Lookup a tree entry by its position in the tree

Get the UNIX file attributes of a tree entry

Get the filename of a tree entry

Get the id of the object pointed by the entry

Convert a tree entry to the git_object it points too

Add a new entry to a tree and return the new entry

Add a new entry to a tree, returning that new entry The only difference with this call is that it does not sort tree afterwards, this requirement is left to the caller.

Sort the entries in a tree created using git_tree_add_entry2

Remove an entry by its index

Remove an entry by its filename

Clear all the entries in a tree

Change the SHA1 id of a tree entry

Change the filename of a tree entry

Change the attributes of a tree entry