]> git.ipfire.org Git - thirdparty/git.git/commitdiff
SubmittingPatches: write problem statement in the log in the present tense
authorJunio C Hamano <gitster@pobox.com>
Thu, 27 Jan 2022 19:02:57 +0000 (11:02 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Jan 2022 01:50:04 +0000 (17:50 -0800)
We give a guidance for proposed log message to write problem
statement first, followed by the reasoning behind, and recipe for,
the solution.  Clarify that we describe the situation _before_ the
proposed patch is applied in the present tense (not in the past
tense e.g. "we used to do X, but thanks to this commit we now do Y")
for consistency.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/SubmittingPatches

index 92b80d94d488c2f7af6f5be2b5fbded582b65850..7225a0fb522d3b930e27b4fa3df0ecc2d31395be 100644 (file)
@@ -142,6 +142,13 @@ The body should provide a meaningful commit message, which:
 
 . alternate solutions considered but discarded, if any.
 
+[[present-tense]]
+The problem statement that describes the status quo is written in the
+present tense.  Write "The code does X when it is given input Y",
+instead of "The code used to do Y when given input X".  You do not
+have to say "Currently"---the status quo in the problem statement is
+about the code _without_ your change, by project convention.
+
 [[imperative-mood]]
 Describe your changes in imperative mood, e.g. "make xyzzy do frotz"
 instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy