From d86d9592a1765d66f5e2a5d0bba7ed1490e742e0 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 12 Feb 2021 13:00:19 +0200 Subject: utils: checkstyle.py: Restore checks of renamed files Commit fc91951250ca ("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: fc91951250ca ("utils: checkstyle.py: Add ability to filter files by status in a commit") Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- utils/checkstyle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/checkstyle.py b/utils/checkstyle.py index fb9366f8..93a4fc70 100755 --- a/utils/checkstyle.py +++ b/utils/checkstyle.py @@ -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 -- cgit v1.2.1