From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miklos Vajna Subject: [PATCH v2] git-submodule documentation: fix foreach example Date: Sun, 28 Jun 2009 14:55:45 +0200 Message-ID: <20090628125545.GH10895@genesis.frugalware.org> References: <20090628113931.GC10895@genesis.frugalware.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jakub Narebski , Mark Levedahl , git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Sun Jun 28 14:56:07 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1MKtvF-00056W-PQ for gcvg-git-2@gmane.org; Sun, 28 Jun 2009 14:55:54 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751450AbZF1Mzo (ORCPT ); Sun, 28 Jun 2009 08:55:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751295AbZF1Mzn (ORCPT ); Sun, 28 Jun 2009 08:55:43 -0400 Received: from virgo.iok.hu ([212.40.97.103]:35823 "EHLO virgo.iok.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751102AbZF1Mzn (ORCPT ); Sun, 28 Jun 2009 08:55:43 -0400 Received: from kag.elte.hu (kag.elte.hu [157.181.177.1]) by virgo.iok.hu (Postfix) with ESMTP id 0221A58087; Sun, 28 Jun 2009 14:55:46 +0200 (CEST) Received: from genesis.frugalware.org (frugalware.elte.hu [157.181.177.34]) by kag.elte.hu (Postfix) with ESMTP id AFD4D448D3; Sun, 28 Jun 2009 14:55:45 +0200 (CEST) Received: by genesis.frugalware.org (Postfix, from userid 1000) id 8EE82634001; Sun, 28 Jun 2009 14:55:45 +0200 (CEST) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Backtick and apostrophe are asciidoc markup, so they should be escaped in order to get the expected result in the rendered manual page. Signed-off-by: Miklos Vajna --- On Sun, Jun 28, 2009 at 05:34:23AM -0700, Jakub Narebski wrote: > It is 'backtick' (or 'backquote'), not 'backstick'. There is no 's' > in its name. Ah, true. Thanks, fixed. Documentation/asciidoc.conf | 1 + Documentation/git-submodule.txt | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf index dc76e7f..b88d875 100644 --- a/Documentation/asciidoc.conf +++ b/Documentation/asciidoc.conf @@ -17,6 +17,7 @@ caret=^ startsb=[ endsb=] tilde=~ +backtick=` ifdef::backend-docbook[] [linkgit-inlinemacro] diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt index 470bd75..8941ad7 100644 --- a/Documentation/git-submodule.txt +++ b/Documentation/git-submodule.txt @@ -141,8 +141,9 @@ foreach:: the processing to terminate. This can be overridden by adding '|| :' to the end of the command. + -As an example, "git submodule foreach 'echo $path `git rev-parse HEAD`' will -show the path and currently checked out commit for each submodule. +As an example, +git submodule foreach \'echo $path {backtick}git +rev-parse HEAD{backtick}'+ will show the path and currently checked out +commit for each submodule. sync:: Synchronizes submodules' remote URL configuration setting -- 1.6.3.2