Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Straub <bstraub@github.com>2012-07-31 01:52:46 +0400
committerBen Straub <bstraub@github.com>2012-07-31 02:48:06 +0400
commit4bf5115642b64851f9a32a8157010b588bf44103 (patch)
tree3b6096c0f39feacd11c40ceb1a38c68b7c2b844a /src/reset.c
parent84595a30c01d5808ff71fda8ab63603214d665bf (diff)
Enable stats on git_index_read_tree.
Replace with the contents of git_index_read_tree_with_stats() and improve documentation comments.
Diffstat (limited to 'src/reset.c')
-rw-r--r--src/reset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reset.c b/src/reset.c
index 14f7a236a..1379f6442 100644
--- a/src/reset.c
+++ b/src/reset.c
@@ -80,7 +80,7 @@ int git_reset(
goto cleanup;
}
- if (git_index_read_tree(index, tree) < 0) {
+ if (git_index_read_tree(index, tree, NULL) < 0) {
giterr_set(GITERR_INDEX, "%s - Failed to update the index.", ERROR_MSG);
goto cleanup;
}