chore(scripts): narrow git diff to only include go files in refresh-compat.sh

This commit is contained in:
yusing
2026-02-26 01:11:41 +08:00
parent af68eb4b18
commit 3f6b09d05e

View File

@@ -10,7 +10,7 @@ git fetch origin main compat
git checkout -B compat origin/compat
patch_file="$(mktemp)"
trap 'rm -f "$patch_file"' EXIT
git diff origin/main -- . ':(exclude)**/go.mod' ':(exclude)**/go.sum' >"$patch_file"
git diff origin/main -- ':(glob)**/*.go' >"$patch_file"
git checkout -B main origin/main
git branch -D compat
git checkout -b compat