]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[pre-commit] Set verbose=false for check-whitespace
authorTom de Vries <tdevries@suse.de>
Mon, 10 Nov 2025 17:21:39 +0000 (18:21 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 10 Nov 2025 17:21:39 +0000 (18:21 +0100)
Currently, the pre-commit check check-whitespace has verbose=true:
...
$ pre-commit run --all-files check-whitespace
check-whitespace........................................................Passed
- hook id: check-whitespace
- duration: 0.3s
$
...

That's not necessary, since:
- check-whitespace has no output if the check passes, and
- pre-commit shows the output anyway if the check fails.

Fix this by removing the verbose setting, getting us instead:
...
$ pre-commit run --all-files check-whitespace
check-whitespace........................................................Passed
$
...

Approved-By: Simon Marchi <simon.marchi@efficios.com>
.pre-commit-config.yaml

index d26e55d33c5a9a7d9cb1d0e44b01dda23e719ab8..874518217f4de6f544dd5bca997c274f7e7477e0 100644 (file)
@@ -103,7 +103,6 @@ repos:
       entry: gdb/contrib/check-whitespace-pre-commit.sh
       files: '^(gdb(support|server)?)/.*$'
       pass_filenames: true
-      verbose: true
       stages: [pre-commit]
   - repo: https://github.com/nmoroze/tclint
     rev: v0.6.1