libgit2

git_tree_entry_byindex

Version:

Lookup a tree entry by its position in the tree

Signature

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

Parameters

In
tree

a previously loaded tree.

unsigned int
In
idx

the position in the entry list

Returns

the tree entry; NULL if not found

Versions