libgit2

git_index_read_tree

Version:

Read a tree into the index file

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

Signature

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

Parameters

In
index

an existing index object

In
tree

tree to read

Returns

int

GIT_SUCCESS or an error code

Versions