From: Junio C Hamano Date: Wed, 11 Feb 2026 19:17:48 +0000 (-0800) Subject: CodingGuidelines: document // comments X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f99f50f2d55fa23475b7de25ff215439c6f53ed;p=thirdparty%2Fgit.git CodingGuidelines: document // comments We do not use // comments in our C code, which is implied by the description of multi-line comment rule and its examples, but is not explicitly spelled out. Spell it out. Signed-off-by: Junio C Hamano --- diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines index df72fe0177..51cb70b515 100644 --- a/Documentation/CodingGuidelines +++ b/Documentation/CodingGuidelines @@ -430,6 +430,8 @@ For C programs: */ _("Here is a translatable string explained by the above."); + We do not use // comments. + - Double negation is often harder to understand than no negation at all.