code: def get_files_in_commit(git_folder, commit_id="HEAD"):
      
      repo = Repo(str(git_folder))
      output = repo.git.diff("--name-only", commit_id+"^", commit_id)
      return output.splitlines()
docs: List of files in HEAD commit.