libgit2

git_tree_sort_entries

Version:

Sort the entries in a tree created using git_tree_add_entry2.

This does not mark the tree as modified. It is intended to be used after several invocations of git_tree_add_entry2. git_tree_add_entry, on the other hand, sorts after each entry is added.

Signature

int git_tree_sort_entries(git_tree *tree);

Parameters

git_tree *
In
tree

Tree object whose entries are to be sorted

Returns

int

0 on success; otherwise error code

Versions