This allows us to generate a textual diff of conflicting files in bare repositories by performing a merge on the index followed by repo.merge_file_from_index on the resulting index entries.