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

Commit 06330fc4 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds
Browse files

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: default avatarJoe Perches <joe@perches.com>
Suggested-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f1a63678
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");
	}