Page MenuHomeFreeBSD

D29994.id88184.diff
No OneTemporary

D29994.id88184.diff

diff --git a/documentation/content/en/articles/committers-guide/_index.adoc b/documentation/content/en/articles/committers-guide/_index.adoc
--- a/documentation/content/en/articles/committers-guide/_index.adoc
+++ b/documentation/content/en/articles/committers-guide/_index.adoc
@@ -474,6 +474,33 @@
The 'current' branch is 'main' .
The quarterly branches are named 'yyyyQn' for year 'yyyy' and quarter 'n'.
+===== Commit message formats
+
+A hook is available in the ports repository to help you write up your commit messages in https://cgit.freebsd.org/ports/tree/.hooks/prepare-commit-msg[.hooks/prepare-commit-message].
+It can be enabled by running ``git config --add core.hooksPath .hooks``.
+
+The main point being that a commit message should be formatted in the following way:
+
+....
+category/port: Summary.
+
+Description of why the changes where made.
+
+PR: 12345
+....
+
+[IMPORTANT]
+====
+The first line is the subject of the commit, it contains what port was changed, and a summary of the commit.
+It should contain 50 characters or less.
+
+A blank line should separate it from the rest of the commit message.
+
+The rest of the commit message should be wrapped at the 72 characters boundary.
+
+Another blank line should be added if there are any metadata fields, so that they are easily distinguishable from the commit message.
+====
+
==== Managing Local Changes
This section addresses tracking local changes.
If you have no local changes, you can stop reading now (it is the last section and OK to skip).

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 17, 4:23 AM (3 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27680600
Default Alt Text
D29994.id88184.diff (1 KB)

Event Timeline