From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Russello Subject: [PATCH v2 1/3] Clearer rule about formatting literals Date: Sat, 4 Jun 2016 00:08:35 +0200 Message-ID: <20160603220837.9842-2-tom.russello@grenoble-inp.org> References: <1463587109-22476-1-git-send-email-tom.russello@grenoble-inp.org> <20160603220837.9842-1-tom.russello@grenoble-inp.org> Cc: matthieu.moy@grenoble-inp.fr, erwan.mathoniere@grenoble-inp.org, jordan.de-gea@grenoble-inp.org, samuel.groot@grenoble-inp.org, peff@peff.net, gitster@pobox.com, Tom Russello To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Sat Jun 04 00:12:41 2016 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b8xK7-0006Ad-Mg for gcvg-git-2@plane.gmane.org; Sat, 04 Jun 2016 00:12:12 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422662AbcFCWL5 (ORCPT ); Fri, 3 Jun 2016 18:11:57 -0400 Received: from zm-smtpout-1.grenet.fr ([130.190.244.97]:54838 "EHLO zm-smtpout-1.grenet.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964843AbcFCWLy (ORCPT ); Fri, 3 Jun 2016 18:11:54 -0400 Received: from localhost (localhost [127.0.0.1]) by zm-smtpout-1.grenet.fr (Postfix) with ESMTP id 8EA4A2585; Sat, 4 Jun 2016 00:11:51 +0200 (CEST) Received: from zm-smtpout-1.grenet.fr ([127.0.0.1]) by localhost (zm-smtpout-1.grenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JDp-n5WUcyzY; Sat, 4 Jun 2016 00:11:51 +0200 (CEST) Received: from zm-smtpauth-2.grenet.fr (zm-smtpauth-2.grenet.fr [130.190.244.123]) by zm-smtpout-1.grenet.fr (Postfix) with ESMTP id 7BE9D2583; Sat, 4 Jun 2016 00:11:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zm-smtpauth-2.grenet.fr (Postfix) with ESMTP id 753532077; Sat, 4 Jun 2016 00:11:51 +0200 (CEST) Received: from zm-smtpauth-2.grenet.fr ([127.0.0.1]) by localhost (zm-smtpauth-2.grenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FgcDtm8bsImj; Sat, 4 Jun 2016 00:11:51 +0200 (CEST) Received: from ux-305.numericable.fr (1.23.6.84.rev.sfr.net [84.6.23.1]) by zm-smtpauth-2.grenet.fr (Postfix) with ESMTPSA id 3248A2066; Sat, 4 Jun 2016 00:11:51 +0200 (CEST) X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160603220837.9842-1-tom.russello@grenoble-inp.org> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Make the guideline text that we want for our documentation clearer. Signed-off-by: Tom Russello Signed-off-by: Erwan Mathoniere Signed-off-by: Samuel Groot Signed-off-by: Matthieu Moy --- IMHO, the previous "rule" was not so clear on what we have to do and didn't give a guideline to whether an environment variable has to be wrapped with backticks, single-quotes or something else. Documentation/CodingGuidelines | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines index 0ddd368..c6f8188 100644 --- a/Documentation/CodingGuidelines +++ b/Documentation/CodingGuidelines @@ -526,12 +526,13 @@ Writing Documentation: modifying paragraphs or option/command explanations that contain options or commands: - Literal examples (e.g. use of command-line options, command names, and - configuration variables) are typeset in monospace, and if you can use - `backticks around word phrases`, do so. + Literal examples (e.g. use of command-line options, command names, + configuration and environment variables) must be typeset in monospace (i.e. + wrapped with backticks): `--pretty=oneline` `git rev-list` `remote.pushDefault` + `GIT_DIR` Word phrases enclosed in `backtick characters` are rendered literally and will not be further expanded. The use of `backticks` to achieve the -- 2.8.3