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
@ -1145,7 +1145,7 @@ static int index_has_changes(struct strbuf *sb)
|
||||
DIFF_OPT_SET(&opt, EXIT_WITH_STATUS);
|
||||
if (!sb)
|
||||
DIFF_OPT_SET(&opt, QUICK);
|
||||
do_diff_cache(head.hash, &opt);
|
||||
do_diff_cache(&head, &opt);
|
||||
diffcore_std(&opt);
|
||||
for (i = 0; sb && i < diff_queued_diff.nr; i++) {
|
||||
if (i)
|
||||
|
||||
Reference in New Issue
Block a user