summaryrefslogtreecommitdiff
path: root/.git-hooks
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2020-07-06 03:01:51 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-07-10 01:34:54 +0200
commit493ae7a6bb0c3ad50615db0090e7ae8d391bc327 (patch)
tree9f60f522f1ff9dde6a8131d155654f4d47b37fd0 /.git-hooks
parent005f5db47b8e1bbd7ebddee92009be072e835fd5 (diff)
replace usage of blacklist with denylist
.. and a few cases of instead doing blacklist->excludelist where that made more sense. Background and motivation: https://tools.ietf.org/html/draft-knodel-terminology-02 [API CHANGE] officecfg::Office::Canvas::DeviceBlacklist -> DeviceDenylist [API CHANGE] officecfg::Office::Canvas::BlacklistCurrentDevice -> DenylistCurrentDevice [API CHANGE] officecfg::Office::Common::Misc::OpenCLBlackList -> OpenCLDenyList Change-Id: Ia35e25496bf0cc0692d5de4cb66bfc232d3a869e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98180 Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to '.git-hooks')
-rwxr-xr-x.git-hooks/pre-commit6
1 files changed, 3 insertions, 3 deletions
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit
index 1f3d21ebff98..27fba7e487a3 100755
--- a/.git-hooks/pre-commit
+++ b/.git-hooks/pre-commit
@@ -134,7 +134,7 @@ sub check_style($)
my ($h) = @_;
my $src = ClangFormat::get_extension_regex();
my @bad_names = ();
- my $blacklist_names = ClangFormat::get_blacklist();
+ my $excluded_list_names = ClangFormat::get_excludelist();
my $clang_format = ClangFormat::find();
# Get a list of non-deleted changed files.
@@ -142,14 +142,14 @@ sub check_style($)
while (my $filename = <FILES>)
{
chomp $filename;
- if ($filename =~ /\.($src)$/ and !exists($blacklist_names->{$filename}))
+ if ($filename =~ /\.($src)$/ and !exists($excluded_list_names->{$filename}))
{
if (!defined($clang_format))
{
my $version = ClangFormat::get_wanted_version();
my $opt_lo = ClangFormat::get_own_directory();
- print("\nWARNING: Commit touches new (non-blacklisted) files, but no clang-format"
+ print("\nWARNING: Commit touches new (non-excluded) files, but no clang-format"
. " ${version}\n");
print(" found (via CLANG_FORMAT or PATH env vars, or in ${opt_lo}).\n\n");