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

Re: [PATCH] Documentation: quote double-dash in "<commit> -- <filename>" for AsciiDoc

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 28, 2011, 21:22 UTC
Message-ID
<7vaad1tzve.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20110628171748.GA11485@elie>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 6 quoted lines
> As explained in v1.7.3-rc0~13^2 (Work around em-dash handling in newer
> AsciiDoc, 2010-08-23), outside of verbatim environments, newish
> versions of AsciiDoc will convert double hyphens to en dashes.  Use
> the litdd syntax introduced by that patch to avoid such misformatting
> in sentences where "--" represents the two-character "end of options"
> argument that separates revision names from filename patterns.
Thanks.
This looks very bad:
    $ cd $git/share/man
    $ grep -l '(em ' */*.?

even though we do want em-dash for some hits in the above output. And even worse, there seem to be exceptions to this rule, like ...

Show 6 quoted lines
> diff --git a/Documentation/git-revert.txt b/Documentation/git-revert.txt
> index ac10cfbb..a516d577 100644
> --- a/Documentation/git-revert.txt
> +++ b/Documentation/git-revert.txt
> @@ -23,7 +23,7 @@ throw away all uncommitted changes in your working directory, you
>  should see linkgit:git-reset[1], particularly the '--hard' option.  If
... the one before "hard" above.
Previous: Jonathan NiederNext: Jonathan Nieder
Message 2 of 9 in “Documentation: quote double-dash in "<commit> -- <filename>" for AsciiDoc”
  1. Documentation: quote double-dash in "<commit> -- <filename>" for AsciiDocJonathan Nieder, Jun 28, 2011
  2. Junio C HamanoJun 28, 2011
  3. Jonathan NiederJun 29, 2011
  4. Jeff KingJun 28, 2011
  5. 0/2 Documentation: quote double-dash for AsciiDocJonathan Nieder, Jun 29, 2011
  6. 1/2 Documentation: quote double-dash for AsciiDocJonathan Nieder, Jun 29, 2011
  7. 2/2 Documentation/i18n: quote double-dash for AsciiDocJonathan Nieder, Jun 29, 2011
  8. Ævar Arnfjörð BjarmasonJun 29, 2011
  9. fixup! Documentation/i18n: quote double-dash for AsciiDocJonathan Nieder, Jun 29, 2011

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.