]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc/commit
authorJeff Lucovsky <jlucovsky@oisf.net>
Tue, 19 Nov 2024 14:30:23 +0000 (09:30 -0500)
committerVictor Julien <victor@inliniac.net>
Fri, 20 Dec 2024 06:55:48 +0000 (07:55 +0100)
Describe how to use the git commit template. The template helps ensure
that the information needed for evaluation and context is included in
the commit message.

Ticket: <Redmine ticket number>

doc/userguide/devguide/contributing/code-submission-process.rst

index 05898ce319fc9e743fd2940d771d3707264eccd5..78e50d3eebdc5d2d83068add8326c63b0546ba6f 100644 (file)
@@ -15,16 +15,20 @@ Commits
 #. If your code changes or adds new behavior, add the related documentation
    updates in their own commit, but make sure to add the same ticket number to
    both commit messages.
-#. Commit messages need to be properly formatted (check the example further
-     below in this section):
+#. Commit messages need to be properly formatted (check the example further below in this section).
       * Meaningful and short (50 chars max) subject line followed by an empty line
       * Naming convention: prefix message with sub-system (**"rule parsing: fixing foobar"**). If
         you're not sure what to use, look at past commits to the file(s) in your PR.
       * Description, wrapped at ~72 characters
 #. Commits should be individually compilable, starting with the oldest commit. Make sure that
-     each commit can be built if it and the preceding commits in the PR are used.
+   each commit can be built if it and the preceding commits in the PR are used.
 #. Commits should be authored with the format: "FirstName LastName <name@example.com>"
 
+We recommend that you use git commit message template with the following command:
+``git config commit.template /path/to/suricata/git-template/commit-template.txt``
+The template lists items that help describe the context and include requisite information in
+the commit message. We reserve the right to strictly enforce the template in the future:
+
 Information that needs to be part of a commit (if applicable):
 
 #. Ticket it fixes. E.g. "Fixes Bug #123."