DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] scripts: add check for net driver names without net prefix
@ 2016-07-05 14:40 Bruce Richardson
  2016-07-06  9:10 ` Thomas Monjalon
  0 siblings, 1 reply; 5+ messages in thread
From: Bruce Richardson @ 2016-07-05 14:40 UTC (permalink / raw)
  To: dev; +Cc: thomas.monjalon, Bruce Richardson

Since the current standard for commit prefixes is to put the device type
e.g. "net", in front of the driver name, add a check for commit titles
which have a net driver name without any prefix in front of it.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 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 7d2c7ee..7dc1fd8 100755
--- a/scripts/check-git-log.sh
+++ b/scripts/check-git-log.sh
@@ -78,6 +78,12 @@ bad=$(echo "$headlines" | grep --color=always \
 	| sed 's,^,\t,')
 [ -z "$bad" ] || printf "Wrong headline label:\n$bad\n"
 
+# check headline label for net/ prefix if needed
+bad=$(echo "$headlines" | grep -E --color=always \
+	-e "^($(ls drivers/net | grep -v Makefile | tr '\n' '|')):" \
+	| sed 's,^,\t,')
+[ -z "$bad" ] || printf "Headline missing 'net/' prefix:\n$bad\n"
+
 # check headline lowercase for first words
 bad=$(echo "$headlines" | grep --color=always \
 	-e '^.*[A-Z].*:' \
-- 
2.5.5

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-07-06 10:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-05 14:40 [dpdk-dev] [PATCH] scripts: add check for net driver names without net prefix Bruce Richardson
2016-07-06  9:10 ` Thomas Monjalon
2016-07-06  9:25   ` Bruce Richardson
2016-07-06  9:46     ` Thomas Monjalon
2016-07-06 10:28       ` Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).