diff options
author | Daniel Smith <daniel.smith@qt.io> | 2022-12-01 11:49:01 +0100 |
---|---|---|
committer | Daniel Smith <Daniel.Smith@qt.io> | 2023-03-03 09:24:24 +0000 |
commit | 5b67e2170573358511acbcfa36e18601ef7ff16a (patch) | |
tree | 545de2b3f2ad3792645a9cf5d565a34a1fd2a894 | |
parent | 494bfa119a1e4092bebb52ec8821d1f763110af5 (diff) | |
download | qtrepotools-5b67e2170573358511acbcfa36e18601ef7ff16a.tar.gz |
Add additional language to autogenerated file detection
Fixes: QTQAINFRA-5306
Change-Id: I9a43bb402f001ea72c58098e3154744e16438c76
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rwxr-xr-x | git-hooks/sanitize-commit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index 98741c9..fc27be4 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -771,7 +771,7 @@ while (<DIFF>) { if ($no_copyright && /Copyright/) { $no_copyright = 0; } - if ($check_gen && /All changes made in this file will be lost|This file is automatically generated|DO NOT EDIT|DO NOT delete this file|[Gg]enerated by|uicgenerated|produced by gperf|made by GNU Bison/) { + if ($check_gen && /All changes made in this file will be lost|This file is auto(?:matically )?generated|DO NOT (?:EDIT|CHANGE)|DO NOT delete this file|[Gg]enerated by|uicgenerated|produced by gperf|made by GNU Bison/) { complain("Adding generated file (inferred from line ".($lineno + 1).")", "generated") if ($new_file && !defined($cfg{generated})); $ws_check = 0; |