]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: emit an error when there's a diff in a changelog
authorJoe Perches <joe@perches.com>
Thu, 25 Jun 2015 22:03:27 +0000 (15:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Jun 2015 00:00:42 +0000 (17:00 -0700)
commita57c91c59d73e8cb8595485801eb25952710b4d2
tree854f8e6f053b56d06a071dc129732c989f74317e
parent9f35c767d5035febfb4246b7517f8b8090933490
checkpatch: emit an error when there's a diff in a changelog

People often put diff snippets in changelogs.  This causes problems
when one tries to apply a file containing both the changelog and the
diff because patch(1) tries to apply the diff which it found in the
changelog.

Warn once when what seems to be a diff snippet in the changelog exists.

Signed-off-by: Joe Perches <joe@perches.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl