diff --git a/diff-lib.c b/diff-lib.c
index cfd629da48526f5949124b5d9baeb52dfadd5f64..9139e45fb98b4cb62d4e9dd243d3dc45f631aaeb 100644 (file)
--- a/diff-lib.c
+++ b/diff-lib.c
continue;
}
changed = ce_match_stat(ce, &st, ce_option);
- if (!changed && !DIFF_OPT_TST(&revs->diffopt, FIND_COPIES_HARDER))
- continue;
+ if (!changed) {
+ ce_mark_uptodate(ce);
+ if (!DIFF_OPT_TST(&revs->diffopt, FIND_COPIES_HARDER))
+ continue;
+ }
oldmode = ce->ce_mode;
newmode = ce_mode_from_stat(ce, st.st_mode);
diff_change(&revs->diffopt, oldmode, newmode,