Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff-lib: convert do_diff_cache to struct object_id
[gitweb.git]
/
builtin
/
reset.c
diff --git
a/builtin/reset.c
b/builtin/reset.c
index 0be52fa36af414227a0069e50f7901640ade94d0..3415dac5d59815c7846c6631ecfe2e74e09a05a7 100644
(file)
--- a/
builtin/reset.c
+++ b/
builtin/reset.c
@@
-154,7
+154,7
@@
static int read_from_tree(const struct pathspec *pathspec,
opt.format_callback = update_index_from_diff;
opt.format_callback_data = &intent_to_add;
- if (do_diff_cache(tree_oid
->hash
, &opt))
+ if (do_diff_cache(tree_oid, &opt))
return 1;
diffcore_std(&opt);
diff_flush(&opt);