libgit2

git_index_read_tree

Version:

Read a tree into the index file with stats

The current index contents will be replaced by the specified tree.

Signature

int git_index_read_tree(git_index *index, const git_tree *tree);

Parameters

In
index

an existing index object

In
tree

tree to read

Returns

int

0 or an error code

Versions