handle diffs in index file