files: use the diff-index for top-most patch