diff-lib: convert do_diff_cache to struct object_id
This is needed to convert parse_tree_indirect. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
a9b5f5bfd5
commit
944cffbd18
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user