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 in this repohooks repository,
which comes from the kernel tree and contains that copyright format.

TEST=Passes, tested with an extra exclude.

Change-Id: Ic0decf09718ef4c407f983bfef36cf87ac8abea4
Signed-off-by: Filipe Brandenburger <>
Reviewed-by: Mike Frysinger <>
1 file changed