pre-upload: Allow --include_regex and --exclude_regex in check_cros_license
This will support files in a specific repository that are copied from an
external source and so do not contain the default ChromeOS license and
copyright. One example is checkpatch.pl in this repohooks repository,
which comes from the kernel tree and contains that copyright format.
TEST=Passes pre-upload_unittest.py, tested with an extra exclude.
Signed-off-by: Filipe Brandenburger <firstname.lastname@example.org>
Reviewed-by: Mike Frysinger <email@example.com>
1 file changed