Add commit file list to REPOSITORY_COMMIT_DIALOG.
Reduce occurrences of string parsing of paths when they are already available as data structures.