tree-diff.c: remove implicit dependency on the_index