libgit2

git_tree_entry_byindex

Version:

Lookup a tree entry by its position in the tree

Signature

git_tree_entry *git_tree_entry_byindex(git_tree *tree, int idx);

Parameters

git_tree *
In
tree

a previously loaded tree.

int
In
idx

the position in the entry list

Returns

git_tree_entry *

the tree entry; NULL if not found

Versions