]> git.ipfire.org Git - thirdparty/git.git/commitdiff
CodingGuidelines: hint why we value clearly written log messages
authorJunio C Hamano <gitster@pobox.com>
Thu, 27 Jan 2022 19:02:58 +0000 (11:02 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Jan 2022 01:50:04 +0000 (17:50 -0800)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/CodingGuidelines

index 0e27b5395d8b665fa4c474dc931640a02d4a5f6f..c37c43186ea80e2f11cd1b66c8ed5eaea1c904e3 100644 (file)
@@ -26,6 +26,13 @@ code.  For Git in general, a few rough rules are:
    go and fix it up."
    Cf. http://lkml.iu.edu/hypermail/linux/kernel/1001.3/01069.html
 
+ - Log messages to explain your changes are as important as the
+   changes themselves.  Clearly written code and in-code comments
+   explain how the code works and what is assumed from the surrounding
+   context.  The log messages explain what the changes wanted to
+   achieve and why the changes were necessary (more on this in the
+   accompanying SubmittingPatches document).
+
 Make your code readable and sensible, and don't try to be clever.
 
 As for more concrete guidelines, just imitate the existing code