utils: checkstyle.py: Restore checks of renamed files

Commit fc91951250 ("utils: checkstyle.py: Add ability to filter files
by status in a commit") caused all renamed files to be ignored by the
checker. Fix it.

Fixes: fc91951250 ("utils: checkstyle.py: Add ability to filter files by status in a commit")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2021-02-12 13:00:19 +02:00
parent e201cb4f54
commit d86d9592a1

View file

@ -214,7 +214,7 @@ class Commit:
self._files = [CommitFile(f) for f in files[1:]]
self._title = files[0]
def files(self, filter='AM'):
def files(self, filter='AMR'):
return [f.filename for f in self._files if f.status in filter]
@property