diff --git a/diff-lib.c b/diff-lib.c
index 0aba6cda3c01e17b07bb7235b0395ba50256aedd..ad2a4cde74e0c2ec6367a7128aa0732f131f6bdf 100644 (file)
--- a/diff-lib.c
+++ b/diff-lib.c
memset(&opts, 0, sizeof(opts));
opts.head_idx = 1;
opts.index_only = cached;
+ opts.diff_index_cached = (cached &&
+ !DIFF_OPT_TST(&revs->diffopt, FIND_COPIES_HARDER));
opts.merge = 1;
opts.fn = oneway_diff;
opts.unpack_data = revs;
memset(&opts, 0, sizeof(opts));
opts.head_idx = 1;
opts.index_only = 1;
+ opts.diff_index_cached = !DIFF_OPT_TST(opt, FIND_COPIES_HARDER);
opts.merge = 1;
opts.fn = oneway_diff;
opts.unpack_data = &revs;