checkpatch: add --showfile to allow input via pipe to show filenames
authorJoe Perches <[email protected]>
Thu, 25 Jun 2015 22:03:05 +0000 (15:03 -0700)
committerLinus Torvalds <[email protected]>
Fri, 26 Jun 2015 00:00:41 +0000 (17:00 -0700)
commit34d8815f9512b01757e08f8101730503c87b6353
tree1eaf8b5eff118453386622d2137c5120e5ff4c50
parent57230297116faf5b0a995916d5dd5fedab54cba3
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 <[email protected]>
Cc: Petr Mladek <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl