git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] docs/git-submodule: fix unbalanced quote

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 13, 2017, 22:06 UTC
Message-ID
<xmqqtw7xbva2.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170213210549.jns7asrvjp3lb5wc@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> However, let's take a step back. Even when rendered
> correctly, it's hard to read a long command stuck into the
> middle of a paragraph, and the important punctuation is hard
> to notice.
Yes, I like this reasoning behind the solution very much.
Thanks.
Show 23 quoted lines
>  Documentation/git-submodule.txt | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt
> index 918bd1d1b..a8eb1c7ce 100644
> --- a/Documentation/git-submodule.txt
> +++ b/Documentation/git-submodule.txt
> @@ -228,9 +228,12 @@ 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 {backtick}git
> -rev-parse HEAD{backtick}'+ will show the path and currently checked out
> -commit for each submodule.
> +As an example, the command below will show the path and currently
> +checked out commit for each submodule:
> ++
> +--------------
> +git submodule foreach 'echo $path `git rev-parse HEAD`'
> +--------------
>  
>  sync::
>  	Synchronizes submodules' remote URL configuration setting
Previous: Jeff King
Message 3 of 3 in “docs/gitremote-helpers: fix unbalanced quotes”
  1. docs/gitremote-helpers: fix unbalanced quotesJeff King, Feb 13, 2017
  2. docs/git-submodule: fix unbalanced quoteJeff King, Feb 13, 2017
  3. Junio C HamanoFeb 13, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.