Skip to content

Commit

Permalink
aha
Browse files Browse the repository at this point in the history
  • Loading branch information
pvinis committed Oct 14, 2024
1 parent ab579aa commit 43caaf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion RELEASES
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
51
50
49
48
47
46
Expand Down
11 changes: 2 additions & 9 deletions scripts/new-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ ReleasesFile=RELEASES

NumberOfReleases=12 # the number of releases on the table

IgnorePaths=("README.md")

function guardMissingArg () {
if [ "$#" -ne 1 ]; then
Expand Down Expand Up @@ -91,7 +90,7 @@ function generateDiffs () {
git pull
cd ..

IFS=$'\n' GLOBIGNORE='*' command eval 'releases=($(cat "$ReleasesFile"))'
IFS=$'\n' command eval 'releases=($(cat "$ReleasesFile"))'
for existingRelease in "${releases[@]}"
do
if [ "$existingRelease" == "$newRelease" ]; then
Expand All @@ -102,13 +101,7 @@ function generateDiffs () {
continue
fi

ignoreArgs=()
for path in "${IgnorePaths[@]}"; do
ignoreArgs+=(":!$path")
done

git diff --binary -w -M15% origin/release/"$existingRelease"..origin/release/"$newRelease" \
-- . "${ignoreArgs[@]}" > wt-diffs/diffs/"$existingRelease".."$newRelease".diff
git diff --binary -w -M15% origin/release/"$existingRelease"..origin/release/"$newRelease" > wt-diffs/diffs/"$existingRelease".."$newRelease".diff
done

cd wt-diffs
Expand Down

0 comments on commit 43caaf5

Please sign in to comment.