Compare commits

..

2 commits

Author SHA1 Message Date
Simon Bruder a14ea8c75d fixup! Add filtering script 2023-05-09 23:19:07 +02:00
Simon Bruder bbcf094f3e Add note on filtering 2023-05-09 23:17:29 +02:00
2 changed files with 2 additions and 1 deletions

View file

@ -15,7 +15,7 @@ The repository `ecg-prog-filtered` only includes files solely written by me.
It is filtered with the `./filter.sh` script. It is filtered with the `./filter.sh` script.
Please **dont** rely on the history of this repository, Please **dont** rely on the history of this repository,
as rewriting is part of how it can exist. as rewriting is part of how it can exist.
See [Licences](#Licences) for more information on the licencing. See [Licence](#Licence) for more information on the licencing.
If you want access to all of my solutions, If you want access to all of my solutions,
please write me an email (or contact me in another way), please write me an email (or contact me in another way),

View file

@ -4,5 +4,6 @@ set -euo pipefail
export FILTER_BRANCH_SQUELCH_WARNING=1 export FILTER_BRANCH_SQUELCH_WARNING=1
git branch -D filtered git branch -D filtered
git switch -c filtered git switch -c filtered
git branch -u filtered/filtered
git filter-branch -f --tree-filter "rm -f $(rg --files-without-match 'SPDX-License-Identifier: (L)?GPL-3.0-or-later' -g '/u??/**/*' | tr '\n' ' ')" HEAD git filter-branch -f --tree-filter "rm -f $(rg --files-without-match 'SPDX-License-Identifier: (L)?GPL-3.0-or-later' -g '/u??/**/*' | tr '\n' ' ')" HEAD
git switch - git switch -