diff options
author | Joe Perches <joe@perches.com> | 2015-06-05 15:03:41 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-06-05 15:03:41 +1000 |
commit | 1414bfb831dbb603f4d24f3f1e534dec56d8b562 (patch) | |
tree | 9a80594c958312625a93a93065c145f24babf46c | |
parent | 65fc1a2e649519672c94b08812f9541e388d4cc8 (diff) | |
download | linux-next-1414bfb831dbb603f4d24f3f1e534dec56d8b562.tar.gz |
checkpatch: avoid NOT_UNIFIED_DIFF errors on cover-letter.patch files
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 <joe@perches.com>
Suggested-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index ef24f92e10e5fe..69c4716d9e2745 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -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"); } |