From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [RFC 0/3] [pre-commit] Add shfmt
Date: Wed, 2 Sep 2026 15:17:36 +0200 [thread overview]
Message-ID: <20260902131739.2125928-1-tdevries@suse.de> (raw)
This series contains three patches.
The first adds an shfmt pre-commit hook.
The second enables it and uses it to format all shell scripts.
The third adds shfmt --simplify.
This is an RFC, given the large amount of changes that reformatting brings.
It would be nice to find a formatter closer to the current style.
Tom de Vries (3):
[pre-commit] Add shfmt
[pre-commit] Enable shfmt
[gdb/contrib] Use shfmt --simplify in shfmt.sh
.pre-commit-config.yaml | 10 ++
gdb/contrib/cc-with-tweaks.sh | 80 +++++----
gdb/contrib/check-file-mode.sh | 16 +-
gdb/contrib/check-gnu-style-pre-commit.sh | 5 +-
gdb/contrib/gdb-add-index.sh | 104 ++++++------
gdb/contrib/pre-commit.py | 6 +-
gdb/contrib/shellcheck.sh | 6 +-
gdb/contrib/shfmt.sh | 84 +++++++++
gdb/contrib/words.sh | 20 +--
gdb/doc/makeinfo-wrapper.sh | 14 +-
gdb/gcore-1.in | 141 +++++++--------
gdb/gdb_buildall.sh | 123 ++++++--------
gdb/gdb_mbuild.sh | 179 +++++++++-----------
gdb/gstack-1.in | 25 +--
gdb/make-init-c | 2 +-
gdb/po/gdbtext | 23 +--
gdb/syscalls/update-freebsd.sh | 12 +-
gdb/syscalls/update-linux-defaults.sh | 29 ++--
gdb/syscalls/update-linux-from-src.sh | 25 ++-
gdb/syscalls/update-linux.sh | 26 +--
gdb/syscalls/update-netbsd.sh | 12 +-
gdb/testsuite/lib/dg-add-core-file-count.sh | 6 +-
gdb/testsuite/lib/notty-wrap | 2 +-
gdb/testsuite/make-check-all.sh | 22 +--
24 files changed, 524 insertions(+), 448 deletions(-)
create mode 100755 gdb/contrib/shfmt.sh
base-commit: 192afd3ce7c2324cdbee2d4646df6cf1e9b6fd09
--
2.51.0
next reply other threads:[~2026-09-02 13:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-02 13:17 Tom de Vries [this message]
2026-09-02 13:17 ` [RFC 1/3] " Tom de Vries
2026-09-02 13:17 ` [RFC 2/3] [pre-commit] Enable shfmt Tom de Vries
2026-09-02 13:17 ` [RFC 3/3] [gdb/contrib] Use shfmt --simplify in shfmt.sh Tom de Vries
2026-09-15 7:26 ` Tom de Vries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260902131739.2125928-1-tdevries@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox