diff: convert diff_index_show_file to struct object_id