Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH 7/7] [pre-commit] Add check-news
Date: Mon,  2 Nov 2026 17:33:52 +0100	[thread overview]
Message-ID: <20261102163352.2416793-8-tdevries@suse.de> (raw)
In-Reply-To: <20261102163352.2416793-1-tdevries@suse.de>

Add a pre-commit check that regenerates gdb/NEWS.
---
 .pre-commit-config.yaml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d6f3eab2fd4..5ac2042c722 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -180,6 +180,18 @@ repos:
         files: *gdb_files
         exclude: *testsuite_files
         require_serial: true
+      - id: &id8 check-news
+        name: *id8
+        language: unsupported_script
+        entry: gdb/doc/gen-news.sh
+        pass_filenames: false
+        files: |
+          (?x)^(
+            gdb/NEWS|
+            gdb/doc/NEWS-.*|
+            gdb/doc/NEWS\.lst|
+            gdb/doc/gen-news\.sh
+          )$
 
 # Local Variables:
 # indent-tabs-mode: nil
-- 
2.51.0


  parent reply	other threads:[~2026-11-02 16:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-02 16:33 [PATCH 0/7] [gdb/NEWS] Move NEWS items to gdb/doc/NEWS-* Tom de Vries
2026-11-02 16:33 ` [PATCH 1/7] [gdb/doc] Add NEWS-* files Tom de Vries
2026-11-02 16:33 ` [PATCH 2/7] [gdb/doc] Add gen-news.sh Tom de Vries
2026-11-02 16:33 ` [PATCH 3/7] [gdb/NEWS] Regenerate using gdb/doc/gen-news.sh Tom de Vries
2026-11-02 16:33 ` [PATCH 4/7] [gdb/NEWS] Add header text mentioning it's generated Tom de Vries
2026-11-02 16:33 ` [PATCH 5/7] [gdb/doc] Add gen-news.sh --check Tom de Vries
2026-11-02 16:33 ` [PATCH 6/7] [gdb/testsuite] Add gdb.src/news.exp Tom de Vries
2026-11-02 16:33 ` Tom de Vries [this message]
2026-11-02 17:06 ` [PATCH 0/7] [gdb/NEWS] Move NEWS items to gdb/doc/NEWS-* Eli Zaretskii
2026-11-02 17:15   ` Tom de Vries
2026-11-02 17:27     ` Tom de Vries
2026-11-20 17:56     ` Andrew Burgess
2026-11-20 18:59       ` Tom de Vries
2026-11-20 13:47 ` [PING] " 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=20261102163352.2416793-8-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