aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Ziaee <ziaee@FreeBSD.org>2026-02-12 04:46:16 +0000
committerAlexander Ziaee <ziaee@FreeBSD.org>2026-02-12 04:46:19 +0000
commit261ed379c88a99fa9cb6239a85798f0e578aa485 (patch)
treea08acf5ce3d2c398295d5c0d7aa46f8219bcd570
parent66797b469ee3e303c5e228bea1e244f433e666e1 (diff)
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
-rwxr-xr-xtools/tools/git/hooks/prepare-commit-msg35
1 files changed, 20 insertions, 15 deletions
diff --git a/tools/tools/git/hooks/prepare-commit-msg b/tools/tools/git/hooks/prepare-commit-msg
index 007f0f8cbbd8..ff11f599f344 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: <If and which Problem Report is related.>
-# Reported by: <If someone else reported the issue.>
-# Reviewed by: <If someone else reviewed your modification.>
-# Tested by: <If someone else tested the change.>
-# Approved by: <If you needed approval for this commit.>
-# Obtained from: <If the change is from a third party.>
-# Fixes: <Short hash and title line of commit fixed by this change>
-# MFC after: <N [day[s]|week[s]|month[s]]. Request a reminder email>
-# Relnotes: <Set to 'yes' for mention in release notes.>
-# Security: <Vulnerability reference (one per line) or description.>
-# Event: <If this was done at a conference.>
-# Sponsored by: <If the change was sponsored by an organization.>
+# PR: <If and which Problem Report is related>
+# Reported by: <If someone else reported the issue>
+# Reviewed by: <If someone else reviewed your modification>
+# Tested by: <If someone else tested the change>
+# Discussed with: <If someone else provided meaningful feedback>
+# Approved by: <If you needed approval for this commit>
+# Obtained from: <If the change is from a third party>
+# Fixes: <Short hash + commit title fixed by this change>
+# MFC after: <N [day[s]|week[s]|month[s]] (Request a reminder email)>
+# MFC to: <Specify specific branches to MFC to>
+# Relnotes: <Set to 'yes' for mention in release notes>
+# Security: <Vulnerability reference (one per line) or description>
+# Event: <If this was done at a conference>
+# Sponsored by: <If the change was sponsored by an organization>
# Pull Request: <https://github.com/freebsd/<repo>/pull/###>
+# Closes: <https://github.com/freebsd/<repo>/pull/###>
+# Co-authored-by: <Name and email address of an additional author>
# Differential Revision: <https://reviews.freebsd.org/D###>
#
-# "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