Compare commits

...

2 Commits

Author SHA1 Message Date
Simon Bruder 2d2958a31a Add note on filtering 2023-05-09 23:20:41 +02:00
Simon Bruder e9f79b7288 Add filtering script 2023-05-09 23:20:41 +02:00
2 changed files with 22 additions and 0 deletions

View File

@ -8,6 +8,19 @@ Each exercise includes a separate `readme.txt`
that describes things specific to how I implemented the task.
However, those documents are in German, which is a requirement.
**Note**:
Due to copyright restrictions,
I am not allowed to publish many of my solutions.
The repository `ecg-prog-filtered` only includes files solely written by me.
It is filtered with the `./filter.sh` script.
Please **dont** rely on the history of this repository,
as rewriting is part of how it can exist.
See [Licence](#Licence) for more information on the licencing.
If you want access to all of my solutions,
please write me an email (or contact me in another way),
Ill see what I can do.
## Usage
### Build

9
filter.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-or-later
set -euo pipefail
export FILTER_BRANCH_SQUELCH_WARNING=1
git branch -D filtered
git switch -c 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 push -f -u filtered filtered
git switch -