utils: checkstyle.py: Handle renamed files in header add checker
The header add checker only handles added header, which makes it miss
issues when a header is renamed. Fix it.
Fixes: 8fffab46b8
("utils: checkstyle.py: Add header add checker")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
d86d9592a1
commit
0e2ca7256b
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ class HeaderAddChecker(CommitChecker):
|
||||||
meson_files = [f for f in commit.files('M')
|
meson_files = [f for f in commit.files('M')
|
||||||
if os.path.basename(f) == 'meson.build']
|
if os.path.basename(f) == 'meson.build']
|
||||||
|
|
||||||
for filename in commit.files('A'):
|
for filename in commit.files('AR'):
|
||||||
if not filename.startswith('include/libcamera/') or \
|
if not filename.startswith('include/libcamera/') or \
|
||||||
not filename.endswith('.h'):
|
not filename.endswith('.h'):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue