From 261ed379c88a99fa9cb6239a85798f0e578aa485 Mon Sep 17 00:00:00 2001 From: Alexander Ziaee Date: Wed, 11 Feb 2026 23:46:16 -0500 Subject: [PATCH] prepare-commit-msg: Sync with committers guide Add `Discussed with:`, `Closes:`, `MFC to:`, and `Co-authored-by:` to the commit message template from the committer's guide. While here, wordsmith these to fit on standard console. Reported by: lwhsu Discussed with: emaste, jlduran Reviewed by: vexeduxr Differential Revision: https://reviews.freebsd.org/D54707 --- tools/tools/git/hooks/prepare-commit-msg | 35 ++++++++++++++---------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/tools/tools/git/hooks/prepare-commit-msg b/tools/tools/git/hooks/prepare-commit-msg index 007f0f8cbbd..ff11f599f34 100755 --- a/tools/tools/git/hooks/prepare-commit-msg +++ b/tools/tools/git/hooks/prepare-commit-msg @@ -42,24 +42,29 @@ $(awk '1;/^#$/{exit}' $1) # # Uncomment and complete these metadata fields, as appropriate: # -# PR: -# Reported by: -# Reviewed by: -# Tested by: -# Approved by: -# Obtained from: -# Fixes: -# MFC after: -# Relnotes: -# Security: -# Event: -# Sponsored by: +# PR: +# Reported by: +# Reviewed by: +# Tested by: +# Discussed with: +# Approved by: +# Obtained from: +# Fixes: +# MFC after: +# MFC to: +# Relnotes: +# Security: +# Event: +# Sponsored by: # Pull Request: /pull/###> +# Closes: /pull/###> +# Co-authored-by: # Differential Revision: # -# "Pull Request" and "Differential Revision" require the *full* GitHub or -# Phabricator URL. The commit author should be set appropriately, using -# \`git commit --author\` if someone besides the committer sent in the change. +# "Pull Request", "Closes" and "Differential Revision" require the +# *full* GitHub or Phabricator URL. The commit author should be set +# appropriately, using \`git commit --author\` if someone besides the +# committer sent in the change. $(awk '/^#$/,EOF' "$1") EOF