def find_modified_deliverable_files(reporoot):
    results = subprocess.check_output(
        ['git', 'diff', '--name-only', '--pretty=format:', 'HEAD^'],
        cwd=reporoot,
    )
    filenames = [
        l.strip()
        for l in results.splitlines()
        if l.startswith('deliverables/')
    ]
    return filenames
Return a list of files modified by the most recent commit.
dataset/ETHPy150Open openstack-infra/release-tools/list_deliverable_changes.py/find_modified_deliverable_files