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

Re: [PATCH] Documentation typo.

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 6, 2007, 21:16 UTC
Message-ID
<7v4plkzsuj.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<11810823561507-git-send-email-madcoder@debian.org>
Pierre Habouzit <madcoder@debian.org> writes:
Show 20 quoted lines
> From: Pierre Habouzit <pierre.habouzit@m4x.org>
>
> Signed-off-by: Pierre Habouzit <madcoder@debian.org>
> ---
>  Documentation/pull-fetch-param.txt |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/Documentation/pull-fetch-param.txt b/Documentation/pull-fetch-param.txt
> index 8d4e950..5bcdbc8 100644
> --- a/Documentation/pull-fetch-param.txt
> +++ b/Documentation/pull-fetch-param.txt
> @@ -4,7 +4,7 @@
>  
>  <refspec>::
>  	The canonical format of a <refspec> parameter is
> -	`+?<src>:<dst>`; that is, an optional plus `+`, followed
> +	`\+?<src>:<dst>`; that is, an optional plus `+`, followed
>  	by the source ref, followed by a colon `:`, followed by
>  	the destination ref.
>  +
Not really.  I suspect you are using AsciiDoc 8?

Your patch does make AsciiDoc 8 keep '+' in the HTML output, but manual page output gets an extra backslash, so it is not really an improvement.

Unfortunately our documentation pages were written with AsciiDoc 7, and are not AsciiDoc 8 compatible.

With -aasciidoc7compatible, AsciiDoc 8 is _supposed_ to behave compatibly, but in reality it does not format our documentation correctly. It certainly is possible that AsciiDoc 7 "happens to work" with our documentation pages, and maybe the way we abuse mark-ups can be argued the bug in _our_ documentation, but nobody on our end worked on finding a satisfactory solution to make our documentation format correctly with _both_ versions of AsciiDoc yet.

I wrote about the differences between AsciiDoc 7, and AsciiDoc 8 with the "compatiblity" I found a few weeks ago on this list; the most problematic was that 'asciidoc -aasciidoc7compatible' loses carets in our description where they matter X-<. The list archive may know more about the details,

Previous: Pierre HabouzitNext: Pierre Habouzit
Message 2 of 9 in “Documentation typo.”
  1. Documentation typo.Pierre Habouzit, Jun 5, 2007
  2. Junio C HamanoJun 6, 2007
  3. Pierre HabouzitJun 6, 2007
  4. Junio C HamanoJun 7, 2007
  5. [RFT] Format our Documentation/ with both AsciiDoc 7 & 8Junio C Hamano, Jun 15, 2007
  6. Pierre HabouzitJun 15, 2007
  7. Junio C HamanoJun 15, 2007
  8. Pierre HabouzitJun 16, 2007
  9. Junio C HamanoJun 16, 2007

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.