]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: add --showfile to allow input via pipe to show filenames
authorJoe Perches <joe@perches.com>
Thu, 25 Jun 2015 22:03:05 +0000 (15:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Jun 2015 00:00:41 +0000 (17:00 -0700)
commit3da083b231b0539697fa2be7cfb5b2ed8d9e4387
tree1eaf8b5eff118453386622d2137c5120e5ff4c50
parentc09d933e0d5857de11a3e121632c57e0d891fd4c
checkpatch: add --showfile to allow input via pipe to show filenames

Using "git diff | ./scripts/checkpatch -" does not have an
easy mechanism to see the files and lines actually modified.

Add --showfile to see the file and line specified in the diff.

When --showfile is used without --terse, the second line of each
message output is redundant, so it is removed.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Petr Mladek <pmladek@suse.cz>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl