From 2ea817ae2e491fc12f3363e53ed96d66f461e46e Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Sep 29 2022 08:35:55 +0000 Subject: scripts/CKC: speed up the git-grep Search only in patches.*. I.e. skip especially all those large kabi files. The speedup is significant: real 1m28,309s to: real 0m57,260s --- diff --git a/scripts/check-kernel-commit b/scripts/check-kernel-commit index b2115ba..ef6ed96 100755 --- a/scripts/check-kernel-commit +++ b/scripts/check-kernel-commit @@ -80,7 +80,7 @@ check_branch() missing="" for term in $KBC_CHECK_TERMS ; do - git grep -i "$(term2regex $term)" "remotes/origin/$branch" >/dev/null 2>&1 + git grep -qi "$(term2regex $term)" "remotes/origin/$branch" -- 'patches.*' 2>/dev/null if [ $? -eq 0 ] ; then found="$found $term" else