Calculate the list of interesting files for a merge.