summaryrefslogtreecommitdiff
path: root/src/reset.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-10-17 15:30:22 +0200
committerBen Straub <bs@github.com>2012-10-19 19:36:22 -0700
commit0ae81fc479bf3cf7ed31b3e3b070de7990102f1d (patch)
tree822324b25c1617c04d5fde7c2c6f0e28a8fc9c0f /src/reset.c
parent2b7efe03406411dd8fe25bcc15b0783313097692 (diff)
downloadlibgit2-0ae81fc479bf3cf7ed31b3e3b070de7990102f1d.tar.gz
index: remove read_tree() progress indicator
git_index_read_tree() was exposing a parameter to provide the user with a progress indicator. Unfortunately, due to the recursive nature of the tree walk, the maximum number of items to process was unknown. Thus, the indicator was only counting processed entries, without providing any information how the number of remaining items.
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 3fcad7f46..642318d90 100644
--- a/src/reset.c
+++ b/src/reset.c
@@ -73,7 +73,7 @@ int git_reset(
goto cleanup;
}
- if (git_index_read_tree(index, tree, NULL) < 0) {
+ if (git_index_read_tree(index, tree) < 0) {
giterr_set(GITERR_INDEX, "%s - Failed to update the index.", ERROR_MSG);
goto cleanup;
}