chore(script/prepare-commit-msg): whitelist extensions to be autoremoved

This commit is contained in:
Sebastian Ullrich 2019-07-04 14:31:54 +02:00
parent f4ea667da6
commit 9b4fcf572c

View file

@ -11,7 +11,7 @@ file=$(echo "$diff" | sort -n -k 3 | tail -n 1)
# extract filename
file=$(echo "$file" | cut -f 2 -d' ')
file="${file#'src/'}"
file="${file%.*}"
file="${file%.(cpp|h|md|lean)}"
case $file in
tests/*)
type=test