Created
April 28, 2020 09:56
-
-
Save kaspar030/e28bea3fd46a16651ea955f5abf0b2b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/dist/tools/uncrustify/uncrustify.sh b/dist/tools/uncrustify/uncrustify.sh | |
| index 17c404b11f..d1efad07b3 100755 | |
| --- a/dist/tools/uncrustify/uncrustify.sh | |
| +++ b/dist/tools/uncrustify/uncrustify.sh | |
| @@ -10,7 +10,7 @@ BLACKLIST=$CURDIR/blacklist.txt | |
| # only consider whitelisted stuff, then filter out blacklist | |
| # note: this also applies changed_files' default filter | |
| -FILES=$(changed_files | grep -f "$WHITELIST" | grep -vf "$BLACKLIST") | |
| +FILES=$(changed_files | grep -xf "$WHITELIST" | grep -xvf "$BLACKLIST") | |
| check () { | |
| for F in $FILES | |
| diff --git a/dist/tools/uncrustify/whitelist.txt b/dist/tools/uncrustify/whitelist.txt | |
| index b36387adf5..2962dcca2d 100644 | |
| --- a/dist/tools/uncrustify/whitelist.txt | |
| +++ b/dist/tools/uncrustify/whitelist.txt | |
| @@ -1,2 +1,2 @@ | |
| -core/*.c | |
| -core/include/*.h | |
| +core/.*\.c | |
| +core/include/.*\.h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment