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

Re: [PATCH 2/6] doc: typeset long command-line options as literal

From
Jeff King <peff@peff.net>
Date
Jun 27, 2016, 19:04 UTC
Message-ID
<20160627190422.GC9594@sigill.intra.peff.net>
In-Reply-To
<20160627174623.11084-2-Matthieu.Moy@imag.fr>
On Mon, Jun 27, 2016 at 07:46:19PM +0200, Matthieu Moy wrote:
Show 9 quoted lines
> Similarly to the previous commit, use backquotes instead of
> forward-quotes, for long options.
> 
> This was obtained with:
> 
>   perl -pi -e "s/'(--[a-z][a-z=<>-]*)'/\`\$1\`/g" *.txt
> 
> and manual tweak to remove false positive in ascii-art (o'--o'--o' to
> describe rewritten history).
These mostly looked good, but:
Show 5 quoted lines
>  grep.extendedRegexp::
> -	If set to true, enable '--extended-regexp' option by default. This
> -	option is ignored when the `grep.patternType` option is set to a value
> +	If set to true, enable `--extended-regexp` option by default. This
> +	option is ignored when the 'grep.patternType' option is set to a value

What's going on in the second line here? We remove the backticks from grep.patternType (which is not even a thing that should be touched by your pattern).

Show 6 quoted lines
> @@ -1916,7 +1916,7 @@ log.decorate::
>  	command. If 'short' is specified, the ref name prefixes 'refs/heads/',
>  	'refs/tags/' and 'refs/remotes/' will not be printed. If 'full' is
>  	specified, the full ref name (including prefix) will be printed.
> -	This is the same as the log commands '--decorate' option.
> +	This is the same as the log commands `--decorate` option.

This one conflicts applying on top of master, but the resolution is fairly straightforward.

-Peff
Previous: Matthieu MoyNext: Matthieu Moy
Message 9 of 22 in “doc: typeset short command-line options as literal”
  1. 1/6 doc: typeset short command-line options as literalMatthieu Moy, Jun 27, 2016
  2. 3/6 doc: typeset -- as litteralMatthieu Moy, Jun 27, 2016
  3. Jeff KingJun 27, 2016
  4. Matthieu MoyJun 28, 2016
  5. 4/6 doc: typeset long options with argument as litteralMatthieu Moy, Jun 27, 2016
  6. 5/6 CodingGuidelines: formatting HEAD in documentationMatthieu Moy, Jun 27, 2016
  7. 6/6 doc: typeset HEAD and variants as litteralMatthieu Moy, Jun 27, 2016
  8. 2/6 doc: typeset long command-line options as literalMatthieu Moy, Jun 27, 2016
  9. Jeff KingJun 27, 2016
  10. Matthieu MoyJun 28, 2016
  11. Junio C HamanoJun 28, 2016
  12. Jeff KingJun 27, 2016
  13. Matthieu MoyJun 28, 2016
  14. 0/7 literal formatting in documentationMatthieu Moy, Jun 28, 2016
  15. 7/7 doc: typeset HEAD and variants as literalMatthieu Moy, Jun 28, 2016
  16. 5/7 doc: typeset long options with argument as literalMatthieu Moy, Jun 28, 2016
  17. 1/7 Documentation/git-mv.txt: fix whitespace indentationMatthieu Moy, Jun 28, 2016
  18. 4/7 doc: typeset '--' as literalMatthieu Moy, Jun 28, 2016
  19. 3/7 doc: typeset long command-line options as literalMatthieu Moy, Jun 28, 2016
  20. 6/7 CodingGuidelines: formatting HEAD in documentationMatthieu Moy, Jun 28, 2016
  21. 2/7 doc: typeset short command-line options as literalMatthieu Moy, Jun 28, 2016
  22. Jeff KingJun 30, 2016

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.