Separated getting filenames into its own method. Works but is slow, would be fast if we decide to only get files for 1 commit (basically only show files when a commit is selected).