Skip to contentSkip to conversation

scripts: skip capitalization check for commit prefixes

PATCH Applied Bruce Richardson 2 participants 2 messages Jan 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts: skip capitalization check for commit prefixes

The prefix in the commit title must be a valid component name and is checked in separate checks. For capitalization, just check the part after the colon. This is already done for most capitalization checks, just make the remainder consistent with this.

---
 scripts/check-git-log.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
scripts/check-git-log.sh +4 -4
index f79f0a2..f6a35d2 100755
@@ -113,10 +113,10 @@ bad=$(echo "$headlines" | grep --color=always \
 
 # check headline uppercase (Rx/Tx, VF, L2, MAC, Linux, ARM...)
 bad=$(echo "$headlines" | grep -E --color=always \
-	-e '\<(rx|tx|RX|TX)\>' \
-	-e '\<[pv]f\>' \
-	-e '\<[hsf]w\>' \
-	-e '\<l[234]\>' \
+	-e ':.*\<(rx|tx|RX|TX)\>' \
+	-e ':.*\<[pv]f\>' \
+	-e ':.*\<[hsf]w\>' \
+	-e ':.*\<l[234]\>' \
 	-e ':.*\<api\>' \
 	-e ':.*\<arm\>' \
 	-e ':.*\<armv7\>' \
Signature · 1 line
2.9.3
#1 lore raw

2017-01-13 13:02, Bruce Richardson:

Quoted 6 lines

The prefix in the commit title must be a valid component name and is checked in separate checks. For capitalization, just check the part after the colon. This is already done for most capitalization checks, just make the remainder consistent with this.

Applied, thanks