From: David Marchand Date: Wed, 20 Oct 2021 09:14:15 +0000 (+0200) Subject: devtools: check prefix for libraries patches X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=807274d53ad341ca9d8bcdcf582f60273fa78f76 devtools: check prefix for libraries patches The convention in DPDK is to directly use library names as prefix, without a lib/. Signed-off-by: David Marchand --- diff --git a/devtools/check-git-log.sh b/devtools/check-git-log.sh index 885d444b3d..23c6a7d9bb 100755 --- a/devtools/check-git-log.sh +++ b/devtools/check-git-log.sh @@ -89,6 +89,12 @@ bad=$(for commit in $commits ; do done | sed 's,^,\t,') [ -z "$bad" ] || { printf "Wrong headline prefix:\n$bad\n" && failure=true;} +# check headline prefix for libraries +bad=$(echo "$headlines" | grep --color=always \ + -e '^lib/' \ + | sed 's,^,\t,') +[ -z "$bad" ] || { printf "Wrong headline prefix:\n$bad\n" && failure=true;} + # check headline label for common typos bad=$(echo "$headlines" | grep --color=always \ -e '^example[:/]' \