export MSYS_NO_PATHCONV=1
S="$(cygpath -m "$TEMP")/ir148-real"; rm -rf "$S"; mkdir -p "$S"
REPO="file://$(cygpath -m /c/Users/decid/Documents/projects/spt-core)"
NEW="$(cygpath -m /c/Users/decid/Documents/projects/spt-core/.worktrees/hertz-ir148)/.github/ci/classify-changes.py"
run() { name=$1 P=$2 H=$3; d="$S/$name"; git init -q "$d"; git -C "$d" remote add origin "$REPO"
  git -C "$d" fetch -q --no-tags --depth=2 origin $P; git -C "$d" fetch -q --no-tags --depth=2 origin $H; git -C "$d" checkout -q --detach $H
  echo "== $name: is-ancestor@depth2=$(git -C "$d" merge-base --is-ancestor $P $H; echo $?)"
  (cd "$d" && GITHUB_EVENT_NAME=push GITHUB_SHA=$H CLASSIFY_BEFORE=$P CLASSIFY_FORCED=false python "$NEW" | grep '^CLASSIFY'); }
run field258 c185326bd2b08e152cc33aa975fcea2240ca1cc8 9aa011ac8267d8110986448bd6a111a58220b54c
run ir146 657fda0d8b1cb621f9095487049fc082a249d236 79f6756788a5daafc0066d3c243ae71760c21c8f
run warm1 79f6756788a5daafc0066d3c243ae71760c21c8f 70e17bace5c9e9dd9acda8cace434e81bf7780e4
