patman: Improve handling of files
authorSimon Glass <sjg@chromium.org>
Fri, 30 Oct 2020 03:46:33 +0000 (21:46 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 5 Nov 2020 16:11:31 +0000 (09:11 -0700)
commitb3348522b753450be9e442452bf42aaa032d15d1
tree3a12fbf9765466d36e9bb1dfabe300aaed47764e
parenta12ad7c94064759f5be02b879f3f52ed5111335f
patman: Improve handling of files

Sometimes warnings are associated with a file and sometimes with the
patch as a whole. Update the regular expression to handle both cases,
even in emacs mode. Also add support for detecting new files.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/checkpatch.py