[dpdk-dev] [PATCH] devtools: check commit log fixes syntax
Ferruh Yigit
ferruh.yigit at intel.com
Tue Jan 29 16:30:52 CET 2019
Fixes line commit id length defined as 12 in fixline alias:
fixline = log -1 --abbrev=12 --format='Fixes: %h (\"%s\")%nCc: %ae'
Check if the Fixes line commit id length matches the defined value.
Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
---
Cc: Qi Zhang <qi.z.zhang at intel.com>
---
devtools/check-git-log.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/devtools/check-git-log.sh b/devtools/check-git-log.sh
index d39064f9d..f4d6c1fba 100755
--- a/devtools/check-git-log.sh
+++ b/devtools/check-git-log.sh
@@ -177,6 +177,11 @@ bad=$(for fixtag in $fixtags ; do
done | sed 's,^,\t,')
[ -z "$bad" ] || printf "Wrong 'Fixes' reference:\n$bad\n"
+bad=$(for fixtag in $fixtags ; do
+ echo $fixtag | awk '{print $2}' | awk 'length != 12 {print}'
+done)
+[ -z "$bad" ] || printf "Wrong 'Fixes' syntax:\n$bad\n"
+
# check Cc: stable at dpdk.org for fixes
bad=$(for fix in $stablefixes ; do
git log --format='%b' -1 $fix | grep -qi '^Cc: *stable at dpdk.org' ||
--
2.17.2
More information about the dev
mailing list