[PATCH] Diff overhaul, adding the other half of copy detection.