diff-lib: convert do_diff_cache to struct object_id
[gitweb.git] / builtin / reset.c
index 0be52fa36af414227a0069e50f7901640ade94d0..3415dac5d59815c7846c6631ecfe2e74e09a05a7 100644 (file)
@@ -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);