fixup! Add filtering script

Simon Bruder 2023-05-09 23:19:07 +02:00
parent b63edb305e
commit 38f8c454ff
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 1 additions and 0 deletions

View File

@ -4,5 +4,6 @@ set -euo pipefail
export FILTER_BRANCH_SQUELCH_WARNING=1
git branch -D 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 switch -