From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: [PATCH] scripts: check for commit msgs starting with 'It' Date: Tue, 28 Jun 2016 12:27:12 +0100 Message-ID: <1467113232-20463-1-git-send-email-bruce.richardson@intel.com> Cc: thomas.monjalon@6wind.com, Bruce Richardson To: dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 161F02C14 for ; Tue, 28 Jun 2016 13:27:25 +0200 (CEST) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Bruce Richardson --- scripts/check-git-log.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/check-git-log.sh b/scripts/check-git-log.sh index 153f378..87b122f 100755 --- a/scripts/check-git-log.sh +++ b/scripts/check-git-log.sh @@ -114,6 +114,12 @@ bad=$(echo "$headlines" | awk 'length>60 {print}' | sed 's,^,\t,') bad=$(echo "$bodylines" | awk 'length>75 {print}' | sed 's,^,\t,') [ -z "$bad" ] || printf "Line too long:\n$bad\n" +# check starting commit message with "It" +bad=$(echo "$bodylines" | head -n1 | grep -E --color=always \ + -e '^It' \ + | sed 's,^,\t,') +[ -z "$bad" ] || printf "Wrong beginning of commit message :\n$bad\n" + # check tags spelling bad=$(echo "$tags" | grep -v '^\(Reported\|Suggested\|Signed-off\|Acked\|Reviewed\|Tested\)-by: [^,]* <.*@.*>$' | -- 2.5.5