mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 09:18:31 +02:00
chore(scripts): narrow git diff to only include go files in refresh-compat.sh
This commit is contained in:
@@ -10,7 +10,7 @@ git fetch origin main compat
|
|||||||
git checkout -B compat origin/compat
|
git checkout -B compat origin/compat
|
||||||
patch_file="$(mktemp)"
|
patch_file="$(mktemp)"
|
||||||
trap 'rm -f "$patch_file"' EXIT
|
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 checkout -B main origin/main
|
||||||
git branch -D compat
|
git branch -D compat
|
||||||
git checkout -b compat
|
git checkout -b compat
|
||||||
|
|||||||
Reference in New Issue
Block a user