diff options
| author | Pádraig Brady <P@draigBrady.com> | 2025-08-12 14:31:03 +0100 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2025-08-12 17:50:40 +0100 |
| commit | 2543c0052c9be0e53c529f6be90b861ac99a092b (patch) | |
| tree | 9245748ff8b17eb216803c2e1a0d308abe70de02 /scripts/git-hooks/commit-msg | |
| parent | basenc: Don't trigger undefined behaviour in mini-gmp (diff) | |
| download | coreutils-2543c0052c9be0e53c529f6be90b861ac99a092b.tar.gz coreutils-2543c0052c9be0e53c529f6be90b861ac99a092b.zip | |
maint: use short form bug URLs
* cfg.mk (sc_prohibit-long-form-bug-urls): Disallow long form in code.
* scripts/git-hooks/commit-msg: Disallow long form in commit messages.
* NEWS: Shorten long urls.
* bootstrap.conf: Likewise.
* configure.ac: Likewise.
* scripts/git-hooks/commit-msg: Likewise.
* src/csplit.c: Likewise.
* src/fmt.c: Likewise.
* src/make-prime-list.c: Likewise.
* src/nohup.c: Likewise.
* tests/od/od-float.sh: Likewise.
* tests/rm/r-root.sh: Likewise.
* tests/tail/inotify-race.sh: Likewise.
* tests/tail/inotify-race2.sh: Likewise.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
| -rwxr-xr-x | scripts/git-hooks/commit-msg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/git-hooks/commit-msg b/scripts/git-hooks/commit-msg index da094c95a..bdea8c38d 100755 --- a/scripts/git-hooks/commit-msg +++ b/scripts/git-hooks/commit-msg @@ -136,6 +136,12 @@ sub check_msg($$) $buf =~ m!https://lists\.gnu\.org/archive/html/!s and return "use '/r/' in place of '/archive/html/' in lists.gnu.org URLs"; + $buf =~ m!https?://(?:.*\.)?sourceware\.org/bugzilla/show_bug\.cgi\?id=(\d+)!s + and return "use shorter https://sourceware.org/PR$1"; + + $buf =~ m!https?://gcc\.gnu\.org/bugzilla/show_bug\.cgi\?id=(\d+)!s + and return "use shorter https://gcc.gnu.org/PR$1"; + return ''; } |
