def main()

in scripts/upstream_changes.py [0:0]


def main(path, reference, git):
    """
    Find what changes occurred between two versions

    ex:
    ./upstream_changes.py content/fr/_index.html
    """
    if reference is None:
        reference = find_reference(path, git=git)
    reference_commit_hash = last_commit(path=reference, git=git)
    translation_commit_hash = last_commit(path=path, git=git)

    print(diff(
        reference_commit_hash=reference_commit_hash,
        translation_commit_hash=translation_commit_hash,
        reference_path=reference,
        git=git
    ))