Skip to contentSkip to conversation

devtools: update headline prefix for drivers

PATCH Applied Ferruh Yigit 2 participants 2 messages Jan 26, 2017 – Jan 29, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 devtools: update headline prefix for drivers

For the patches that touch multiple drivers in same driver group, script forces headline prefix start with drv group.

Like for net/a net/b net/c, patch title should be "net: x y z"

Update rule to let "driver" prefix in headline, for above sample patch title becomes: "drivers/net: x y z"

This prevents patch confused with library with same name.

---
 devtools/check-git-log.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
devtools/check-git-log.sh +1 -1
index 62b5f43..9ccef66 100755
@@ -87,7 +87,7 @@ bad=$(for commit in $commits ; do
 	if [ $(echo "$drvgrp" | wc -l) -gt 1 ] ; then
 		echo "$headline" | grep -v '^drivers:'
 	elif [ $(echo "$drv" | wc -l) -gt 1 ] ; then
-		echo "$headline" | grep -v "^$drvgrp"
+		echo "$headline" | grep -v "^drivers/$drvgrp"
 	else
 		echo "$headline" | grep -v "^$drv"
 	fi
Signature · 1 line
2.9.3
#1 lore raw

2017-01-26 14:07, Ferruh Yigit:

Quoted 11 lines

For the patches that touch multiple drivers in same driver group, script forces headline prefix start with drv group.

Like for net/a net/b net/c, patch title should be "net: x y z"

Update rule to let "driver" prefix in headline, for above sample patch title becomes: "drivers/net: x y z"

This prevents patch confused with library with same name.

Applied, thanks