From c2e2f6f79dea9fa98bbdeca9be9ceb6ded443cf9 Mon Sep 17 00:00:00 2001 From: Neeraj Upadhyay Date: Mon, 4 Nov 2019 15:28:51 +0530 Subject: [PATCH] checkpatch: Fix the commit log false positive warnings Similar to commit 39229466a6f7 ("checkpatch: Fix the commit log false positive warnings") cover the case where file name contains ','. Change-Id: Ib3ecb07be9393c77d2dec4f52f40b1cb0c949687 Signed-off-by: Neeraj Upadhyay --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index a5fe929bd79d..f49524e14851 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2817,7 +2817,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 :