[binutils-gdb] [pre-commit] Remove pass_filenames setting for check-whitespace

Tom de Vries via Gdb-cvs <[email protected]> Wed, 17 Jun 2026 19:40:20 +0000 (GMT)
Newsgroups gmane.comp.gdb.cvs
Message-ID <20260617194020.CA4EC4BA2E1E__5091.29397557757$1781725234$gmane$org@sourceware.org>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8bbde06fa2a0ac754e6e8e2354e59721ee2c81b3

commit 8bbde06fa2a0ac754e6e8e2354e59721ee2c81b3
Author: Tom de Vries <[email protected]>
Date:   Wed Jun 17 21:40:03 2026 +0200

    [pre-commit] Remove pass_filenames setting for check-whitespace
    
    The pre-commit hook check-whitespace has the following setting:
    ...
    pass_filenames: true
    ...
    
    Since true is the default for pass_filenames, remove the superfluous setting.
    
    Approved-By: Tom Tromey <[email protected]>

Diff:
---
 .pre-commit-config.yaml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e5327cbae76..5be2034b26f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -103,7 +103,6 @@ repos:
       language: unsupported_script
       entry: gdb/contrib/check-whitespace-pre-commit.py
       files: '^(gdb(support|server)?)/.*$'
-      pass_filenames: true
       stages: [pre-commit]
     - id: pre-commit-setup
       name: pre-commit-setup