Skip to content

Commit

Permalink
Merge pull request #83 from huntie/ignore-readme-changes
Browse files Browse the repository at this point in the history
Add configurable IgnorePaths, ignore README.md changes
  • Loading branch information
cipolleschi authored Sep 18, 2024
2 parents 8c57e69 + f94c111 commit 0954e02
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/new-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ReadmeTableBig=README_TABLE_BIG.md

NumberOfReleases=12 # the number of releases on the table

IgnorePaths=("README.md")

function guardMissingArg () {
if [ "$#" -ne 1 ]; then
Expand Down Expand Up @@ -120,7 +121,13 @@ function generateDiffs () {
continue
fi

git diff --binary -w -M15% origin/release/"$existingRelease"..origin/release/"$newRelease" > wt-diffs/diffs/"$existingRelease".."$newRelease".diff
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
done

cd wt-diffs
Expand Down

0 comments on commit 0954e02

Please sign in to comment.