diff.c: reduce implicit dependency on the_index