def get_changed_files(repo):
    """return a list of all of the changed files based on the last commit"""
    if repo != None:
        return list(repo.commit(repo.head.object.hexsha).stats.files.keys())
    return []