From 2c9dea5e7fed90ff746d895324b1faa6fd4b43b0 Mon Sep 17 00:00:00 2001 From: Vladimir Oltean Date: Mon, 16 Feb 2026 13:28:20 +0200 Subject: [PATCH] netdev/tree_match: include commas in diffstat regex If there's a patch set that contains pure dt-bindings changes and isn't marked as 'net' or 'net-next', it will fail to be detected through required_files, because the r_diffstat and r_header regexes assume a file name is composed of letters, numbers, slashes, dots, hyphens, underscores. Actually, dt-bindings file names also have a comma: vendor,schema.yml. Signed-off-by: Vladimir Oltean --- netdev/tree_match.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netdev/tree_match.py b/netdev/tree_match.py index 3e18d13..9e744f0 100644 --- a/netdev/tree_match.py +++ b/netdev/tree_match.py @@ -84,8 +84,8 @@ def _tree_name_should_be_local_files(raw_email): foreign_found = False lines = raw_email.split('\n') - r_diffstat = re.compile(r'^\s*([-\w/._]+)\s+\|\s+\d+\s*[-+]*\s*$') - r_header = re.compile(r'\+\+\+ b/([-\w/._]+)$') + r_diffstat = re.compile(r'^\s*([-\w/._,]+)\s+\|\s+\d+\s*[-+]*\s*$') + r_header = re.compile(r'\+\+\+ b/([-\w/._,]+)$') for line in lines: match = r_header.match(line) if not match: