Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
block alloc: add lifecycle APIs for cache_entry structs
[gitweb.git]
/
builtin
/
reset.c
diff --git
a/builtin/reset.c
b/builtin/reset.c
index a862c70fab99290b5faf3e700e88194589583329..c3f0cfa1e81d02bbfd3e84c7f62ef018c835403b 100644
(file)
--- a/
builtin/reset.c
+++ b/
builtin/reset.c
@@
-134,7
+134,7
@@
static void update_index_from_diff(struct diff_queue_struct *q,
continue;
}
- ce = make_cache_entry(
one->mode, one->oid.hash
, one->path,
+ ce = make_cache_entry(
&the_index, one->mode, &one->oid
, one->path,
0, 0);
if (!ce)
die(_("make_cache_entry failed for path '%s'"),