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

Re: [PATCH] Documentation: remove '\' from front of options in githooks doc

From
Thomas Rast <trast@student.ethz.ch>
Date
Sep 30, 2008, 15:56 UTC
Message-ID
<200809301756.41518.trast@student.ethz.ch>
In-Reply-To
<1222781831-6620-1-git-send-email-szeder@ira.uka.de>
SZEDER Gábor wrote:
> ... because they show up in the man and html outputs.
...
> diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt
...
Show 9 quoted lines
> @@ -66,7 +66,7 @@ pre-commit
>  ----------
>  
>  This hook is invoked by 'git-commit', and can be bypassed
> -with `\--no-verify` option.  It takes no parameter, and is
> +with `--no-verify` option.  It takes no parameter, and is
>  invoked before obtaining the proposed commit log message and
>  making a commit.  Exiting with non-zero status from this script
>  causes the 'git-commit' to abort.

This must be checked against older asciidocs to verify that it does not turn the unescaped sequence -- into an em-dash. The \-- traces back to e1ccf53 ([PATCH] Escape asciidoc's built-in em-dash replacement, 2005-09-12), which indicates that it _was_ a problem in the past. (The asciidoc 8.2.5 on my system does not use an em-dash in either case.)

ACK on all single-dash cases though, which are indeed wrong and were apparently introduced later in 8089c85 (git-commit: add a prepare-commit-msg hook, 2008-02-05).

- Thomas
-- 
Thomas Rast
trast@student.ethz.ch
Previous: SZEDER GáborNext: SZEDER Gábor
Message 2 of 4 in “Documentation: remove '\' from front of options in githooks doc”
  1. Documentation: remove '\' from front of options in githooks docSZEDER Gábor, Sep 30, 2008
  2. Thomas RastSep 30, 2008
  3. SZEDER GáborSep 30, 2008
  4. Documentation: remove '\' in front of short optionsSZEDER Gábor, Sep 30, 2008

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.