Skip to content

Commit

Permalink
checkpatch: avoid NOT_UNIFIED_DIFF errors on cover-letter.patch files
Browse files Browse the repository at this point in the history
Make an exception for the "Does not appear to be a unified-diff" error
when scanning what appears to be git generated cover letters.

Signed-off-by: Joe Perches <[email protected]>
Suggested-by: Rasmus Villemoes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
JoePerches authored and torvalds committed Jun 26, 2015
1 parent f1a6367 commit 06330fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5614,7 +5614,7 @@ sub process {
exit(0);
}

if (!$is_patch) {
if (!$is_patch && $file !~ /cover-letter\.patch$/) {
ERROR("NOT_UNIFIED_DIFF",
"Does not appear to be a unified-diff format patch\n");
}
Expand Down

0 comments on commit 06330fc

Please sign in to comment.