#!/usr/bin/env bash # Output: application roles new on this branch (absent at origin/main), space-separated; empty when none or the baseline is unavailable. set -euo pipefail PYTHON="${PYTHON:-python3}" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" REPO_ROOT="$(cd "$SCRIPT_DIR/../../../.." && pwd)" cd "$REPO_ROOT" baseline_remote="$(./scripts/meta/resolve/baseline_remote.sh)" git fetch --quiet --no-tags --depth=50 "${baseline_remote}" main:refs/remotes/origin/main --force >/dev/null 2>&1 || git fetch --quiet --no-tags "${baseline_remote}" main:refs/remotes/origin/main --force >/dev/null 2>&1 || true # nocheck: shell-or-true -- baseline fetch is best-effort; a missing origin/main means "no new roles" by contract "${PYTHON}" -m cli.meta.roles.applications.new_in_branch origin/main