* [PATCH] checkpatch: Avoid NOT_UNIFIED_DIFF errors on cover-letter.patch files
@ 2015-06-04 11:34 Joe Perches
0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2015-06-04 11:34 UTC (permalink / raw)
To: Andrew Morton; +Cc: Rasmus Villemoes, Andy Whitcroft, LKML
Make an exception for the "Does not appear to be a unified-diff"
error when scanning what appears to be git generated cover letters.
Suggested-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Joe Perches <joe@perches.com>
---
scripts/checkpatch.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index c8032a0..da417b6 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -5563,7 +5563,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");
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-04 11:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-04 11:34 [PATCH] checkpatch: Avoid NOT_UNIFIED_DIFF errors on cover-letter.patch files Joe Perches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).