CONTIRBUTING.md: add a note about imperative mood

Add a note in CONTIRBUTING.md that imperative mood
is the preferred way to write commit messages.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2018-03-02 15:06:19 +02:00 committed by Dirk Hohndel
parent 0fa6422a04
commit afc9dd5f38

View file

@ -47,6 +47,9 @@ Signed-off-by: Your Name
That header line really should be meaningful, and really should be just one line. The header line is what is shown by tools like gitk and shortlog, and should summarize the change in one readable line of text, independently of the longer explanation. That header line really should be meaningful, and really should be just one line. The header line is what is shown by tools like gitk and shortlog, and should summarize the change in one readable line of text, independently of the longer explanation.
The prefered way to write a commit message is using imperative mood, e.g. "Make foo do xyz" instead of "This patch makes foo do xyz" or "I made foo do xyz", as if you are giving commands or requests to the code base.
https://en.wikipedia.org/wiki/Imperative_mood
![gitk sample][10] ![gitk sample][10]
Example with gitk Example with gitk