diff mbox series

[5/7] contributor-guide: submit-changes: reword commit message instructions

Message ID 20250918-submit-patches-v1-5-28abd2919df0@cherry.de
State Under Review
Headers show
Series contributor-guide: submit-changes: improve instructions on commit content | expand

Commit Message

Quentin Schulz Sept. 18, 2025, 10:24 a.m. UTC
From: Quentin Schulz <quentin.schulz@cherry.de>

This should hopefully make it clearer what is expected from the
contributor.

This follows my understanding of git-commit(1)[1] where the following is
a git commit message:

"""
git commit title

git commit description
"""

I'm putting the "Fixes [YOCTO" line in "body of the commit message" so
it's understood as being different from the git commit description so
that the note admonition allowing us to have an empty commit description
doesn't apply to the "Fixes [YOCTO" line.

[1] https://www.man7.org/linux/man-pages/man1/git-commit.1.html#DISCUSSION
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
 documentation/contributor-guide/submit-changes.rst | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
diff mbox series

Patch

diff --git a/documentation/contributor-guide/submit-changes.rst b/documentation/contributor-guide/submit-changes.rst
index 1de4b6c0ed838d1c4c225df06763f672ff7c27f1..49790ee14ed259c94b28bee548ca48b9e5977cb7 100644
--- a/documentation/contributor-guide/submit-changes.rst
+++ b/documentation/contributor-guide/submit-changes.rst
@@ -163,7 +163,7 @@  to add the upgraded version.
              this project or the open source license(s) involved.
 
    -  Provide a single-line summary of the change and, if more
-      explanation is needed, provide more detail in the body of the
+      explanation is needed, provide more detail in the description of the
       commit. This summary is typically viewable in the "shortlist" of
       changes. Thus, providing something short and descriptive that
       gives the reader a summary of the change is useful when viewing a
@@ -179,23 +179,23 @@  to add the upgraded version.
 
             git log --oneline <paths>
 
-   -  For the body of the commit message, provide detailed information
+   -  For the commit description, provide detailed information
       that describes what you changed, why you made the change, and the
       approach you used. It might also be helpful if you mention how you
-      tested the change. Provide as much detail as you can in the body
-      of the commit message.
+      tested the change. Provide as much detail as you can in the commit
+      description.
 
       .. note::
 
          If the single line summary is enough to describe a simple
-         change, the body of the commit message can be left empty.
+         change, the commit description can be left empty.
 
    -  If the change addresses a specific bug or issue that is associated
-      with a bug-tracking ID, include a reference to that ID in your
-      detailed description. For example, the Yocto Project uses a
+      with a bug-tracking ID, include a reference to that ID in the body of the
+      commit message. For example, the Yocto Project uses a
       specific convention for bug references --- any commit that addresses
-      a specific bug should use the following form for the detailed
-      description. Be sure to use the actual bug-tracking ID from
+      a specific bug should use the following form for the body of the commit
+      message. Be sure to use the actual bug-tracking ID from
       Bugzilla for bug-id::
 
          single-line summary of change