Skip to content

Commit

Permalink
Merge branch 'improvement.userblock.exclude' into 'master.dev'
Browse files Browse the repository at this point in the history
[improvement.userblock.exclude] Prevent userblock from including complete HDF5 files

See merge request piclas/piclas!905
  • Loading branch information
scopplestone committed Feb 15, 2024
2 parents d09a67e + 046181b commit 8ce53a5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/userblock/generateuserblock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,13 @@ if [ $INSIDEGITREPO ]; then
git diff -p $PARENTCOMMIT..HEAD | head -n 1000 >> userblock.txt
fi
# uncommited changes
git diff -p | head -n 1000 >> userblock.txt
## exclude any files not wanted such as HDF5, regressionchecks, and tutorials files
## these can still normally committed as they are only excluded from the userblock
GITROOT=$(git rev-parse --show-toplevel)
## this only works from the root of the git directory
cd $GITROOT
git diff -p HEAD ':!regressioncheck' ':!tutorials' ':!*.h5' ':!*.csv' ':!*.tmp' | head -n 1000 >> $1/userblock.txt
cd "$1"
else
echo "not a git repo" >> userblock.txt
fi
Expand Down

0 comments on commit 8ce53a5

Please sign in to comment.