Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40251625 authored by Raghavendra Rao Ananta's avatar Raghavendra Rao Ananta
Browse files

checkpatch: Fix commit log check for a filename



Checkpatch fails to identify the filename with a comma (usually
dt-binding files), and issues the following warning, for example:
WARNING: Possible unwrapped commit description
(prefer a maximum 75 chars per line)
bindings/qcom,foo.yaml | 27 +++++++++++++++++++++++++

Hence, include a comma (,) in the regular expression where it
checks for file delta changes while scanning through the commit
log.

Change-Id: I07000722c1990c7171769e222c5f9aefa1d87ae6
Signed-off-by: default avatarRaghavendra Rao Ananta <rananta@codeaurora.org>
parent b6b4ad70
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2867,7 +2867,7 @@ sub process {
# Check for line lengths > 75 in commit log, warn once
		if ($in_commit_log && !$commit_log_long_line &&
		    length($line) > 75 &&
		    !($line =~ /^\s*[a-zA-Z0-9_\/\.\-]+\s+\|\s+\d+/ ||
		    !($line =~ /^\s*[a-zA-Z0-9_\/\.\-\,]+\s+\|\s+\d+/ ||
					# file delta changes
		      $line =~ /^\s*(?:[\w\.\-]+\/)++[\w\.\-]+:/ ||
					# filename then :