]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
doc: indicate imperative mood for commit titles
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 6 Aug 2019 14:20:47 +0000 (07:20 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 6 Aug 2019 18:18:21 +0000 (11:18 -0700)
This is convention in the kernel and Ceph but is not clearly documented.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
SubmittingPatches.rst

index a13191d8572434d8a96c6264887a1e7349abc11b..601e88223d68aed22e15236c4d82064a45497a59 100644 (file)
@@ -397,12 +397,20 @@ could be "doc:", "osd:", or "common:". One can use::
 
      git log
 
-for more examples. Please use this "subsystem: short description"
-convention for naming pull requests (PRs) also, as it feeds directly
-into the script that generates release notes and it's tedious to clean
-up at release time. This document places no limit on the length of PR
-titles, but be aware that they are subject to editing as part of the
-release process.
+for more examples. It is also conventional to use the imperative mood in the
+commit title. For example::
+
+     mds: add perf counter for finisher of MDSRank
+
+or::
+
+     osd: make the ClassHandler::mutex private
+
+For GitHub, please use this "subsystem: short description" convention for
+naming pull requests (PRs). These titles feed directly into the script that
+generates release notes and it is tedious to clean up non-conformant PR titles
+at release time.  This document places no limit on the length of PR titles, but
+be aware that they are subject to editing as part of the release process.
 
 Commit message
 ^^^^^^^^^^^^^^