Support adding file/file and repo/dir pairs.