Read a tree into the index file with stats
The current index contents will be replaced by the specified tree.
an existing index object
tree to read
0 or an error code
See Implementation
Read a tree into the index file with stats
The current index contents will be replaced by the specified tree.