List of files in HEAD commit.

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