From 9b4fcf572c3641f2be4780da2ec3b214ced0a6dd Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Thu, 4 Jul 2019 14:31:54 +0200 Subject: [PATCH] chore(script/prepare-commit-msg): whitelist extensions to be autoremoved --- script/prepare-commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/prepare-commit-msg b/script/prepare-commit-msg index e8c7dad5d7..9c16c3f207 100755 --- a/script/prepare-commit-msg +++ b/script/prepare-commit-msg @@ -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